Skip to main content

Random numbers

  • Chapter
  • First Online:
The Mathematical-Function Computation Handbook
  • 1966 Accesses

Abstract

Certain kinds of computations, such as sampling and simulation, need a source of random numbers. However, there are three significant problems when we try to compute such numbers:

  • Numbers in computers, whether integer or floating-point, are rational numbers. Such numbers can only approximate mathematical real numbers, and therefore, truly random numbers cannot be produced by any computer algorithm.

  • Most algorithms for generation of ‘random’ numbers produce a sequence of almost-always-different values that eventually repeats. The length of that sequence is called the period. By contrast, a stream of truly random numbers has occasional repetitions, and is never periodic.

  • Software for random-number generation often contains subtle dependencies upon the behavior, precision, and range of integer and floating-point arithmetic.

Any one who considers arithmetical methods of producing random numbers is, of course, in a state of sin.

— John von Neumann (1951).

A random number generator chosen at random isn’t very random.

— Donald E. Knuth.

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

Access this chapter

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 109.00
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 139.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info
Hardcover Book
USD 199.99
Price excludes VAT (USA)
  • Durable hardcover edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Preview

Unable to display preview. Download preview PDF.

Unable to display preview. Download preview PDF.

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Nelson H. F. Beebe .

Rights and permissions

Reprints and permissions

Copyright information

© 2017 Springer International Publishing AG

About this chapter

Cite this chapter

Beebe, N.H.F. (2017). Random numbers. In: The Mathematical-Function Computation Handbook. Springer, Cham. https://doi.org/10.1007/978-3-319-64110-2_7

Download citation

  • DOI: https://doi.org/10.1007/978-3-319-64110-2_7

  • Published:

  • Publisher Name: Springer, Cham

  • Print ISBN: 978-3-319-64109-6

  • Online ISBN: 978-3-319-64110-2

  • eBook Packages: Computer ScienceComputer Science (R0)

Publish with us

Policies and ethics