Anyone who considers arithmetical methods of producing random digits is, of course, in a state of sin. For, as has been pointed out several times, there is no such thing as a random number — there are only methods to produce random numbers and a strict arithmetic procedure, of course, is not such a method.
~ John von Neumann (19031228 19570208 age:53)
There are two kinds of random numbers, pseudorandom numbers that can be rapidly generated from mathematical formulae and true random numbers, generated from some random physical process such as radioactive decay. Pseudorandom numbers are useless for cryptography. You need true random numbers for that. You now probably want to follow the link to pseudorandom numbers.
Collections.shuffle will scramble the objects in an ArrayList.
This page is posted 
http://mindprod.com/jgloss/randomnumbers.html  
Optional Replicator mirror

J:\mindprod\jgloss\randomnumbers.html  
Please read the feedback from other visitors,
or send your own feedback about the site. Contact Roedy. Please feel free to link to this page without explicit permission.  
Canadian
Mind
Products
IP:[65.110.21.43] Your face IP:[34.205.93.2] 
 
Feedback 
You are visitor number  