Home
last modified time | relevance | path

Searched refs:_random (Results 1 – 25 of 1195) sorted by relevance

12345678910>>...48

/dports/math/xtensor/xtensor-0.24.0/docs/source/api/
H A Dxrandom.rst18 .. _random-seed-function-reference:
22 .. _random-rand-function-reference:
26 .. _random-randint-function-reference:
30 .. _random-randn-function-reference:
34 .. _random-binomial-function-reference:
38 .. _random-geometric-function-reference:
46 .. _random-poisson-function-reference:
54 .. _random-gamma-function-reference:
58 .. _random-weibull-function-reference:
70 .. _random-cauchy-function-reference:
[all …]
/dports/devel/hadoop2/jetty-6.1.14/modules/jetty/src/main/java/org/mortbay/jetty/servlet/
H A DAbstractSessionIdManager.java34 protected Random _random; field in AbstractSessionIdManager
48 _random=random; in AbstractSessionIdManager()
65 return _random; in getRandom()
71 _random=random; in setRandom()
104 … ?(hashCode()^Runtime.getRuntime().freeMemory()^_random.nextInt()^(((long)request.hashCode())<<32)) in newSessionId()
105 :_random.nextLong(); in newSessionId()
139 if (_random==null) in initRandom()
143 _random=SecureRandom.getInstance(SESSION_ID_RANDOM_ALGORITHM); in initRandom()
149 _random=SecureRandom.getInstance(SESSION_ID_RANDOM_ALGORITHM_ALT); in initRandom()
155 _random=new Random(); in initRandom()
[all …]
H A DHashSessionIdManager.java41 protected Random _random; field in HashSessionIdManager
53 _random=random; in HashSessionIdManager()
114 if (_random==null) in doStart()
122 _random=SecureRandom.getInstance(SESSION_ID_RANDOM_ALGORITHM); in doStart()
128 _random=SecureRandom.getInstance(SESSION_ID_RANDOM_ALGORITHM_ALT); in doStart()
134 _random=new Random(); in doStart()
139_random.setSeed(_random.nextLong()^System.currentTimeMillis()^hashCode()^Runtime.getRuntime().free… in doStart()
238 … ?(hashCode()^Runtime.getRuntime().freeMemory()^_random.nextInt()^(((long)request.hashCode())<<32)) in newSessionId()
239 :_random.nextLong(); in newSessionId()
256 return _random; in getRandom()
[all …]
/dports/devel/hadoop/jetty-6.1.14/modules/jetty/src/main/java/org/mortbay/jetty/servlet/
H A DAbstractSessionIdManager.java34 protected Random _random; field in AbstractSessionIdManager
48 _random=random; in AbstractSessionIdManager()
65 return _random; in getRandom()
71 _random=random; in setRandom()
104 … ?(hashCode()^Runtime.getRuntime().freeMemory()^_random.nextInt()^(((long)request.hashCode())<<32)) in newSessionId()
105 :_random.nextLong(); in newSessionId()
139 if (_random==null) in initRandom()
143 _random=SecureRandom.getInstance(SESSION_ID_RANDOM_ALGORITHM); in initRandom()
149 _random=SecureRandom.getInstance(SESSION_ID_RANDOM_ALGORITHM_ALT); in initRandom()
155 _random=new Random(); in initRandom()
[all …]
H A DHashSessionIdManager.java41 protected Random _random; field in HashSessionIdManager
53 _random=random; in HashSessionIdManager()
114 if (_random==null) in doStart()
122 _random=SecureRandom.getInstance(SESSION_ID_RANDOM_ALGORITHM); in doStart()
128 _random=SecureRandom.getInstance(SESSION_ID_RANDOM_ALGORITHM_ALT); in doStart()
134 _random=new Random(); in doStart()
139_random.setSeed(_random.nextLong()^System.currentTimeMillis()^hashCode()^Runtime.getRuntime().free… in doStart()
238 … ?(hashCode()^Runtime.getRuntime().freeMemory()^_random.nextInt()^(((long)request.hashCode())<<32)) in newSessionId()
239 :_random.nextLong(); in newSessionId()
256 return _random; in getRandom()
[all …]
/dports/databases/mongodb36/mongodb-src-r3.6.23/src/mongo/db/repl/
H A Didempotency_scalar_generator.cpp47 RandomizedScalarGenerator::RandomizedScalarGenerator(PseudoRandom random) : _random(random) {} in RandomizedScalarGenerator()
50 auto randomInt = this->_random.nextInt32(static_cast<int32_t>(ScalarChoice::kNumChoices)); in generateScalar()
52 auto randomBit = this->_random.nextInt32(2); in generateScalar()
60 return Value(this->_random.nextCanonicalDouble() * INT_MAX * multiplier); in generateScalar()
62 return Value(this->_random.nextInt32(INT_MAX) * multiplier); in generateScalar()
78 std::size_t randomStrLength = this->_random.nextInt32(kMaxStrLength); in _generateRandomString()
81 randomStr[i] = kViableChars[this->_random.nextInt32(kViableChars.size())]; in _generateRandomString()
H A Didempotency_update_sequence.cpp114 std::size_t randomAmountOfArgs = this->_random.nextInt32(this->_paths.size()) + 1; in _getRandomPaths()
119 int randomIndex = UpdateSequenceGenerator::_random.nextInt32(validPaths.size()); in _getRandomPaths()
134 double generateSetUpdate = this->_random.nextCanonicalDouble(); in generateUpdate()
162 double choice = this->_random.nextCanonicalDouble() * setSum; in _determineWhatToSet()
206 return UpdateSequenceGenerator::_random.nextCanonicalDouble() * INT_MAX; in _generateNumericToSet()
210 return this->_random.nextInt32(2) == 1; in _generateBoolToSet()
217 std::size_t randomIndex = this->_random.nextInt32(possibleArrs.size()); in _generateArrToSet()
225 std::size_t randomIndex = this->_random.nextInt32(enumerator.getDocs().size()); in _generateDocToSet()
277 : _config(std::move(config)), _random(random), _scalarGenerator(scalarGenerator) { in UpdateSequenceGenerator()
281 std::random_shuffle(this->_paths.begin(), this->_paths.end(), this->_random); in UpdateSequenceGenerator()
/dports/devel/py-rstr/rstr-3.0.0/rstr/
H A Drstr_base.py94 def __init__(self, _random, **custom_alphabets): argument
96 self._random = _random
117 return [self._random.choice(population) for i in itertools.repeat(None, k)]
152 k = self._random.randint(start_range, end_range)
158 self._random.shuffle(result)
164 def __init__(self, _random=random, **alphabets): argument
165 super(Rstr, self).__init__(_random=_random, **alphabets)
/dports/devel/spark/spark-2.1.1/python/pyspark/
H A Drddsampler.py28 self._random = None
31 self._random = random.Random(self._seed ^ split)
35 self._random.randint(0, 1)
38 return self._random.random()
46 p = self._random.random()
50 p *= self._random.random()
53 p = self._random.expovariate(mean)
57 p += self._random.expovariate(mean)
/dports/devel/hadoop2/jetty-6.1.14/contrib/terracotta/src/main/java/org/mortbay/terracotta/servlet/
H A DTerracottaSessionIdManager.java51 private Random _random; field in TerracottaSessionIdManager
62 if (_random == null) in doStart()
66 _random = SecureRandom.getInstance(SESSION_ID_RANDOM_ALGORITHM); in doStart()
72 _random = SecureRandom.getInstance(SESSION_ID_RANDOM_ALGORITHM_ALT); in doStart()
78 _random = new Random(); in doStart()
83_random.setSeed(_random.nextLong() ^ System.currentTimeMillis() ^ hashCode() ^ Runtime.getRuntime(… in doStart()
162 …? (hashCode() ^ Runtime.getRuntime().freeMemory() ^ _random.nextInt() ^ (((long)request.hashCode()… in newSessionId()
163 : _random.nextLong(); in newSessionId()
/dports/devel/hadoop/jetty-6.1.14/contrib/terracotta/src/main/java/org/mortbay/terracotta/servlet/
H A DTerracottaSessionIdManager.java51 private Random _random; field in TerracottaSessionIdManager
62 if (_random == null) in doStart()
66 _random = SecureRandom.getInstance(SESSION_ID_RANDOM_ALGORITHM); in doStart()
72 _random = SecureRandom.getInstance(SESSION_ID_RANDOM_ALGORITHM_ALT); in doStart()
78 _random = new Random(); in doStart()
83_random.setSeed(_random.nextLong() ^ System.currentTimeMillis() ^ hashCode() ^ Runtime.getRuntime(… in doStart()
162 …? (hashCode() ^ Runtime.getRuntime().freeMemory() ^ _random.nextInt() ^ (((long)request.hashCode()… in newSessionId()
163 : _random.nextLong(); in newSessionId()
/dports/sysutils/pass-secrets/pass-secrets-1b7a323/nanoid_cpp/src/nanoid/
H A Dnanoid.cpp10 static NANOID_NAMESPACE::crypto_random<std::mt19937> _random(std::random_device{}());
34 return generate(_random, _default_dict, _default_size); in generate()
38 return generate(_random, alphabet, _default_size); in generate()
42 return generate(_random, _default_dict, size); in generate()
46 return generate(_random, alphabet, size); in generate()
54 std::ref(static_cast<NANOID_NAMESPACE::crypto_random_base&>(_random)), in generate_async()
63 std::ref(static_cast<NANOID_NAMESPACE::crypto_random_base&>(_random)), in generate_async()
72 std::ref(static_cast<NANOID_NAMESPACE::crypto_random_base&>(_random)), in generate_async()
81 std::ref(static_cast<NANOID_NAMESPACE::crypto_random_base&>(_random)), in generate_async()
/dports/science/rdkit/rdkit-Release_2021_03_5/rdkit/
H A DRDRandom.py17 import random as _random namespace
18 random = _random.random
19 randrange = _random.randrange
20 seed = _random.seed
/dports/irc/smuxi/smuxi-1.1/lib/db4o-net/Db4objects.Db4o/native/Sharpen/Util/
H A DRandom.cs9 readonly System.Random _random = new System.Random(); field in Sharpen.Util.Random
17 return _random.Next(); in NextLong()
22 return _random.Next(int.MinValue, int.MaxValue); in NextInt()
27 return _random.Next(ceiling); in NextInt()
/dports/security/py-angr/angr-9.0.5405/angr/exploration_techniques/
H A Dstochastic.py24 self._random = random.Random()
25 self._random.seed(42)
26 self.affinity = defaultdict(self._random.random)
31 if not simgr.stashes[stash] or self._random.random() < self.restart_prob:
42 selected = self._random.uniform(0, total_weight)
/dports/devel/py-numba/numba-0.51.2/numba/cpython/
H A Drandomimpl.py790 u1 = _random()
794 u2 = _random()
800 u3 = _random()
854 U = _random()
905 U = _random()
965 U = _random()
984 U = _random()
1005 V = _random()
1008 U = _random()
1083 U = _random()
[all …]
/dports/games/openttd/openttd-12.1/src/core/
H A Drandom_func.hpp29 extern Randomizer _random; ///< Random used in the game state calculations
44 storage->random = _random; in SaveRandomSeeds()
54 _random = storage.random; in RestoreRandomSeeds()
71 return _random.Next(); in Random()
83 return _random.Next(limit); in RandomRange()
/dports/devel/hadoop2/jetty-6.1.14/contrib/cometd/bayeux/src/test/java/org/mortbay/cometd/
H A DChannelImplTest.java56 _random=SecureRandom.getInstance("SHA1PRNG"); in BayeuxStub()
60 _random=new Random(); in BayeuxStub()
63 _random.setSeed(_random.nextLong()^hashCode()^Runtime.getRuntime().freeMemory()); in BayeuxStub()
/dports/devel/hadoop/jetty-6.1.14/contrib/cometd/bayeux/src/test/java/org/mortbay/cometd/
H A DChannelImplTest.java56 _random=SecureRandom.getInstance("SHA1PRNG"); in BayeuxStub()
60 _random=new Random(); in BayeuxStub()
63 _random.setSeed(_random.nextLong()^hashCode()^Runtime.getRuntime().freeMemory()); in BayeuxStub()
/dports/databases/percona56-client/percona-server-5.6.51-91.0/storage/ndb/test/ndbapi/
H A Drestarts.cpp47 int _random = 0; in main() local
58 { "random", 'r', arg_flag, &_random, "Select restart case randomly", in main()
85 if ((argv[optind] == NULL) && (_random == 0)){ in main()
102 } else if (_random) { in main()
/dports/databases/percona-pam-for-mysql/percona-server-5.6.51-91.0/storage/ndb/test/ndbapi/
H A Drestarts.cpp47 int _random = 0; in main() local
58 { "random", 'r', arg_flag, &_random, "Select restart case randomly", in main()
85 if ((argv[optind] == NULL) && (_random == 0)){ in main()
102 } else if (_random) { in main()
/dports/databases/percona57-client/percona-server-5.7.36-39/storage/ndb/test/ndbapi/
H A Drestarts.cpp47 int _random = 0; in main() local
58 { "random", 'r', arg_flag, &_random, "Select restart case randomly", in main()
85 if ((argv[optind] == NULL) && (_random == 0)){ in main()
102 } else if (_random) { in main()
/dports/databases/mysqlwsrep56-server/mysql-wsrep-wsrep_5.6.51-25.33/storage/ndb/test/ndbapi/
H A Drestarts.cpp47 int _random = 0; in main() local
58 { "random", 'r', arg_flag, &_random, "Select restart case randomly", in main()
85 if ((argv[optind] == NULL) && (_random == 0)){ in main()
102 } else if (_random) { in main()
/dports/databases/mysqlwsrep57-server/mysql-wsrep-wsrep_5.7.35-25.27/storage/ndb/test/ndbapi/
H A Drestarts.cpp47 int _random = 0; in main() local
58 { "random", 'r', arg_flag, &_random, "Select restart case randomly", in main()
85 if ((argv[optind] == NULL) && (_random == 0)){ in main()
102 } else if (_random) { in main()
/dports/databases/percona57-pam-for-mysql/percona-server-5.7.36-39/storage/ndb/test/ndbapi/
H A Drestarts.cpp47 int _random = 0; in main() local
58 { "random", 'r', arg_flag, &_random, "Select restart case randomly", in main()
85 if ((argv[optind] == NULL) && (_random == 0)){ in main()
102 } else if (_random) { in main()

12345678910>>...48