Results 1 to 2 of 2
Thread: random seed
- 01-12-2011, 11:23 AM #1
Member
- Join Date
- Jan 2011
- Posts
- 8
- Rep Power
- 0
random seed
hi
i want to creatE identical random number using identical seed.
Random rand = new Random();
long rseed = rand.nextLong();
rand.setSeed(rseed);
THEN I WILL PASS RAND TO OTHER FUNCTION:
Random chRandom1 = new Random();
chRandom1.setSeed(rand.nextLong());
i am confused what are the output for these
- 01-12-2011, 11:29 AM #2
Senior Member
- Join Date
- Jun 2008
- Posts
- 2,366
- Rep Power
- 7
Similar Threads
-
Random
By Feilin in forum New To JavaReplies: 4Last Post: 08-15-2010, 03:49 PM -
how i use the random class to random the cards i have
By yanipao in forum New To JavaReplies: 14Last Post: 10-19-2009, 10:57 AM -
How do I generate random numbers in a certain range using the random class?
By frasifrasi in forum New To JavaReplies: 8Last Post: 04-19-2009, 05:50 PM -
Using Random
By razmyasdfg in forum CLDC and MIDPReplies: 1Last Post: 07-27-2008, 10:47 PM -
random numbers without random class`
By carlos123 in forum New To JavaReplies: 4Last Post: 01-17-2008, 10:44 PM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks