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.

19th Oct 2018, 11:26 AM
seelam suneel
seelam suneel - avatar
3 Answers
19th Oct 2018, 12:44 PM
Daniele Bonomi
Daniele Bonomi - avatar
0
how does that seed works?
19th Oct 2018, 1:58 PM
seelam suneel
seelam suneel - avatar
0
double randomGenerator(long seed) { Random generator = new Random(seed); double num = generator.nextDouble() * (0.5); return num; }
19th Oct 2018, 2:11 PM
seelam suneel
seelam suneel - avatar