python (12.9k questions)
javascript (9.2k questions)
reactjs (4.7k questions)
java (4.2k questions)
java (4.2k questions)
c# (3.5k questions)
c# (3.5k questions)
html (3.3k questions)
Python - passing random seed (generator) to `randn()`
I was reading this blog post and they suggest that rather than setting the random seed for the whole document
np.random.seed(1234)
x = np.random.randn(100)
One should use a generator, which can be cr...
Euler_Salter
Votes: 0
Answers: 1
How to get sufficient entropy for shuffling cards in Java?
I'm working on a statistics project involving cards and shuffling, and I've run across an issue with random number generation.
From a simple bit of math there are 52! possible deck permutations, which...
Caedmon
Votes: 0
Answers: 2
Reproduce random DAG generated with dagitty::randomDAG()
I am using dagitty::randomDAG() to generate random directed acyclic graphs (DAGs). I would like to be able to reproduce the same random DAG but randomDAG() doesn't seem to respect the random seed in R...
mark
Votes: 0
Answers: 1
C rand(). Issue with generating random strings
Encountered issue with generating random strings.
Example below generates repeated blocks of random strings. Amount of random string in block depends on 'WORD_LENGTH'. For 1M 'COUNT' and 'WORD_LENGTH'...
Mark_85
Votes: 0
Answers: 3