+ 3
How to generate random numbers?
I want to ask that can we generate random numbers in Java without any predefined classes (such as Random.class) and writing the code manually. If anyone can please attach your code in your answer.
2 Réponses
+ 5
I suggest you search for "pseudorandom number generator" for a more general algorithm.
0
You should be able to create a pseudo random number generator rather easily. Hint - use the tiniest fractions of current time.