Random Numbers: The Backbone of Stochastic Simulations

  • Chapter
  • First Online:
Predictive and Simulation Analytics
  • 386 Accesses

Abstract

I outlined the general process of simulation design in Chap. 8. One topic I did not address applies to stochastic simulations. This is the generation of random occurrences based on random numbers. Random numbers are what make simulations stochastic. In fact, “stochastic” means random. But what is a random number and how are they generated? These are the questions for this chapter.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Subscribe and save

Springer+ Basic
EUR 32.99 /Month
  • Get 10 units per month
  • Download Article/Chapter or Ebook
  • 1 Unit = 1 Article or 1 Chapter
  • Cancel anytime
Subscribe now

Buy Now

Chapter
GBP 19.95
Price includes VAT (United Kingdom)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
GBP 59.99
Price includes VAT (United Kingdom)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Hardcover Book
GBP 74.99
Price includes VAT (United Kingdom)
  • Durable hardcover edition
  • Dispatched in 3 to 5 business days
  • Free ship** worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Notes

  1. 1.

    See https://en.wikipedia.org/wiki/Form_follows_function. Last accessed January 14, 2023.

  2. 2.

    See the Popular Science article by Caroline Delbert (August 18, 2021) at https://www.popularmechanics.com/science/math/a37329769/supercomputer-calculated-pi-to-record-breaking-628-trillion-digits/. Last accessed February 16, 2022.

  3. 3.

    See https://en.wikipedia.org/wiki/Fibonacci_number. Last accessed February 21, 2022.

  4. 4.

    See the Wikipedia article at https://en.wikipedia.org/wiki/Fibonacci_number for some comments about the staring values. Last accessed February 21, 2022.

  5. 5.

    As of February 16, 2022.

  6. 6.

    See https://stackoverflow.com/questions/49195632/why-do-the-numpy-and-random-modules-give-different-random-numbers-for-the-same-s. Last accessed February 16, 2022.

  7. 7.

    The documentation for the Numpy random package notes that the “high limit may be included in the returned array of floats due to floating-point rounding.” See https://numpy.org/doc/stable/reference/random/generated/numpy.random.uniform.html, last accessed March 14, 2022.

  8. 8.

    Source for this example: https://stats.stackexchange.com/questions/374931/how-to-find-the-inverse-transform-of-the-gumbel-distribution. Last accessed February 16, 2022.

  9. 9.

    The \(\leq \) is not needed in (9.10) because the probability at a specific value of X is zero. This is easy to see using (9.10) with both limits of the integral set to the same value, x.

  10. 10.

    See https://medium.com/geekculture/the-story-behind-random-seed-42-in-machine-learning-b838c4ac290a, last accessed February 17, 2023, for an interesting perspective on 42.

  11. 11.

    A military clock is the same, but by 24 h.

  12. 12.

    Recall that 12 divides into 1 0 times with a remainder of 1.

  13. 13.

    As of October 2020. See https://en.wikipedia.org/wiki/Mersenne_prime. Last accessed February 21, 2022.

References

  • Anderson, P. G. (1991). A Fibonacci-based pseudo-random number generator. In Applications of Fibonacci numbers (vol. 4, pp. 1–8). Kluwer Academic Publishers.

    Google Scholar 

  • Bennett, D. J. (1998). Randomness. Harvard University Press.

    Book  MATH  Google Scholar 

  • Dershowitz, N., & Reingold, E. M. (2008). Calendrical calculations (3rd ed.). Cambridge University Press.

    MATH  Google Scholar 

  • du Sautoy, M. (2003). The music of the primes: searching to solve the greatest mystery in mathematics. HarperCollins Publishers, Inc.

    MATH  Google Scholar 

  • Eagle, A. (2021). Chance versus randomness. Stanford Encyclopedia of Philosophy (vol. 1).

    Google Scholar 

  • Gandrud, C. (2014). Reproducible research with R and RStudio. CRC Press.

    MATH  Google Scholar 

  • Johnson, D. (2022, February). These magnetic whirlpools could unlock true random numbers: meet the “skyrmion” - a breakthrough tech for cryptography and secure communications? IEEE Sprectrum. https://spectrum.ieee.org/true-random-number-generator-skyrmion.

  • Kneusel, R. T. (2018). Random numbers and computers. Springer.

    Book  MATH  Google Scholar 

  • Knuth, D. E. (1997). The art of computer programming (3rd ed.). Volume 1: Fundamental Algorithms. Addison-Wesley.

    Google Scholar 

  • Marsaglia, G. (2010). On the randomness of pi and other decimal expansions. Techreport, Department of Statistics, Florida State University.

    Google Scholar 

  • Paczkowski, W. R. (2022b). Business analytics: data science for business problems. Springer.

    Google Scholar 

  • Rockmore, D. N. (2005). Stalking the Riemann hypothesis: the quest to find the hidden law of prime numbers. Pantheon Books.

    MATH  Google Scholar 

  • Rogers, I., Harrell, G., & Wang, J. (2015). Using pi digits to generate random numbers: a visual and statistical analysis. In H. R. Arabnia, L. Deligiannidis, G. Jandieri, F. G. Tinetti, G. A. Gravvanis, M. R. Grimaila, D. D. Hodson, & A. M. G. Solo (Eds.), Scientific computing (pp. 251–257).

    Google Scholar 

  • von Neumann, J. (1951). Various techniques used in connection with random digits. In Monte Carlo method, Volume 12 of Applied mathematics series (pp. 36–38). Journal of Research at the National Bureau of Standards. Reprinted in von Neumann’s Collected Works, 5 (pp. 768–770). Pergamon Press (1963).

    Google Scholar 

Download references

Author information

Authors and Affiliations

Authors

Rights and permissions

Reprints and permissions

Copyright information

© 2023 The Author(s), under exclusive license to Springer Nature Switzerland AG

About this chapter

Check for updates. Verify currency and authenticity via CrossMark

Cite this chapter

Paczkowski, W.R. (2023). Random Numbers: The Backbone of Stochastic Simulations. In: Predictive and Simulation Analytics. Springer, Cham. https://doi.org/10.1007/978-3-031-31887-0_9

Download citation

Publish with us

Policies and ethics

Navigation