vendredi 13 mars 2020

Java - Pseudo random numbers and the concept of uniform distribution [closed]

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.

  1. What is uniform distribution?
  2. How is Math.random of uniform distribution?
  3. What is a pseudo-random number generator?
  4. Is the pseudo-random generator not of uniform distribution?
  5. How can I use a pseudo-random number generator in Java?
  6. What is Poisson distribution?

It would be great if the above could be explained with some examples.




Aucun commentaire:

Enregistrer un commentaire