My textbook states "Java's method Math.random" generates numbers that are uniformly distributed over an interval from 0 to 1." And suggests using a pseudo-random number generator. For example, while processing customer transactions in a waiting line, or airport simulation with queues for departure and arrival planes, etc. I have researched some concepts online to better understand the topic of pseudo-random number generators, but still confused.
- What is uniform distribution?
- How is Math.random of uniform distribution?
- What is a pseudo-random number generator?
- Is the pseudo-random generator not of uniform distribution?
- How can I use a pseudo-random number generator in Java?
- What is Poisson distribution?
It would be great if the above could be explained with some examples.
Aucun commentaire:
Enregistrer un commentaire