Need I change random seed when calling random() method each time?
Or should generate one random seed and not to change until restart my program?
Which choice could I get a better random number?
About my program
I'm developing a poker program with Node.js
. I need shuffle cards with Math.random()
.
Due to original original Math.random()
method is not secure enough, so I use seedrandom package rewrote it.
I can provide a random seed to seedrandom
. But I don't know when to change or need I change the random seed when the program is runing.