This week's book giveaway is in the
We're giving away four copies of
and have Sam Newman on-line!
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.
[OCA 8 Book]
subject: random no generator
How is session id generated in weblogic?
How to print out string at random interval
Java Random vs SecureRandom
convert String data as PublicKey or PrivateKey
generate and encrypt a password
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015