Skip to main content

Large Random Numbers

  • Chapter
Cryptography in C and C++
  • 1725 Accesses

Abstract

Sequences of “random” numerical values are used in many statistical procedures, in numerical mathematics, in physics, and also in number-theoretic applications to replace statistical observations or to automate the input of variable quantities. Random numbers are used:

  • to select random samples from a larger set,

  • in cryptography to generate keys and in running security protocols,

  • as initial values in procedures to generate prime numbers,

  • to test computer programs (a topic to which we shall return),

  • for fun,

as well as in many additional applications. In computer simulations of natural phenomena random numbers can be used to represent measured values, thereby representing a natural process (Monte Carlo methods). Random numbers are useful even when numbers are required that can be selected arbitrarily. Before we set out in this chapter to produce some functions for the generation of large random numbers, which will be required, in particular, for cryptographic applications, we should take care of some methodological preparations.

Mathematics is full of pseudorandomness—plenty enough to supply all would-be creators for all time.

—D. R. Hofstadter, Gödel, Escher, Bach

Anyone who considers arithmetical methods of producing random digits is, of course, in a state of sin.

—John von Neumann

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

Access this chapter

eBook
USD 16.99
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 79.99
Price excludes VAT (USA)
  • Compact, lightweight 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

Rights and permissions

Reprints and permissions

Copyright information

© 2013 Michael Welschenbach

About this chapter

Cite this chapter

Welschenbach, M. (2013). Large Random Numbers. In: Cryptography in C and C++. Apress, Berkeley, CA. https://doi.org/10.1007/978-1-4302-5099-9_12

Download citation

Publish with us

Policies and ethics