• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

random no generator

 
srini Raman
Ranch Hand
Posts: 33
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I want to know the cycle length of Random,SecureRandom for best,worst,average cases.

Thanks,
Srini
 
John Kelty
Ranch Hand
Posts: 33
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
A stumper of a question, it seems!

http://mindprod.com/jgloss/pseudorandom.html

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.
 
Jim Yingst
Wanderer
Sheriff
Posts: 18671
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Another place to look would be in the Java 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.
 
Scott Selikoff
author
Saloon Keeper
Posts: 4020
18
Eclipse IDE Flex Google Web Toolkit
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sorry "srini TR" but your name still does not conform to our naming policy. Please try again. This is your second warning.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic