A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
this week in the
Java in General
random no generator
Joined: Oct 16, 2006
Oct 16, 2006 23:59:00
I want to know the cycle length of Random,
for best,worst,average cases.
Joined: Aug 08, 2006
Oct 19, 2006 15:56:00
A stumper of a question, it seems!
is a good place to start some research although it doesn't answer your exact question. It does mention that the two low order bits are rather predictable.
Joined: Jan 30, 2000
Oct 19, 2006 18:31:00
Another place to look would be in the
source itself (in src.jar or src.zip, depending on your installation). Not only does it tell you exactly what Random does, but the comments give a reference to where you can look for more info.
"I'm not back." - Bill Harding,
Joined: Oct 23, 2005
Oct 31, 2006 03:17:00
Sorry "srini TR" but your name still does not conform to our naming policy. Please try again. This is your second warning.
Down Home Country Coding with Scott Selikoff
I agree. Here's the link:
subject: random no generator
WA #1.....word association
Promotion of SCWCD Certification Exam Simulators
* Welcome Roger Bjärevall
Regarding random password generation
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014