random-seed
Is there an alternative to using time to seed a random number generation?
I\'m trying to run several instances of a piece of code (2000 instances or so) concurrently in a computing cluster.The way it works is that I submit开发者_Go百科 the jobs and the cluster will run them[详细]
2023-04-09 12:33 分类:问答Best way to add seed to Perlin noise?
I\'m trying to implement 2D Perlin noise generation in C++, and some implementations I found use no seed at all (here, here or here). Other implementations take a seed value to get different noise dep[详细]
2023-03-30 23:03 分类:问答Differences between numpy.random and random.random in Python
I have a big script in Python. I inspired myself in other people\'s code so I ended up using the numpy.random module for some things (for example for creating an array of random numbers taken from a b[详细]
2023-03-27 17:21 分类:问答Java Random class, generate a duplicate number using the same seed and nextBytes()?
Assuming that I am using 开发者_JAVA百科the same seed by instantiating a static final Random object with new Random(), is it possible to get the same number twice by calling nextBytes in the same inst[详细]
2023-03-15 14:12 分类:问答Separate seeds in PHPUnit
How do I create a separate seed for some test inside one test class? PHPUnit documentation includes this example[详细]
2022-12-28 12:19 分类:问答c++ generate a good random seed for psudo random number generators
I am trying to generate a good random seed for a psudo-random number generator.I thought I\'d get the expert\'s opinions.let me know if this is a bad way of doing it or if there are much better ways.[详细]
2022-12-27 02:46 分类:问答How can I store the state of the pseudo-random generator in Perl?
Is there a way to store the current state of the built in pseudo-random number generator in Perl so that when my program is run again, it can pick up the sequence from where it left off rather than st[详细]
2022-12-21 20:06 分类:问答