u cant
Generating random numbers in Java is somewhat of a misnomer because the numbers are actually semi-random.It means to use the program to obtain random integers to use in hypothetical situations such as statistics.
The most accurate way of generating random numbers is to use something called Hotbits. This is an online random number generator that uses radioactive decay. They are supplied for free by a company called Fourmilab, located in Switzerland.
The random variable is discrete
To prevent bias
Simple Random Sample
There are many methods of generating pseudorandom numbers. Some of them are middle square (not very good), Mersenne twister, linear congruential generator (one the oldest used in math libraries, but subject to sequential corellation artifacts), and cryptographically secure generators.
luhn algo
the use of random sampling that results in an unbiased conclusion.
a random no. is just random!:]
the cat pees on the dog daaa
The word random is used to describe a lack of pattern or organisation in behaviour. It may have very specific technical meanings in mathematics / statistics however. In math the term random usually means not able to be predicted or happening by chance. It implies a lack of order. In statistics we use the term random variable to mean a rule that applies a numerical outcome to each event in a sample space. More generally in statistics randomness means a lack of correlation or a lack of bias.
A computer cannot truly generate a random number because it needs a seed value. The system time is a good source for random numbers because it generates a random number every second. If you execute a program with a button that generates a random number based on the system time, every time you click the button it will generate a different number (assuming you didn't press it twice in the same second) because it changes second by second. Although, it seems that the system is generating a random value by using the system time, it really isn't. It is just using the specific time value as a seed.