0
Can we pick specific value in between random number generator
I am trying to generate random values, every five minutes i want to pick one constant value.
3 Antworten
0
Use seeds
https://stackoverflow.com/questions/12458383/java-random-numbers-using-a-seed
or store your random numbers
0
how does that seed works?
0
double randomGenerator(long seed) { Random generator = new Random(seed); double num = generator.nextDouble() * (0.5); return num; }