Random Number Functions

Randomness is added to programs by using random numbers. These are generated by random number functions.

There are two primary random number functions available in the standard C / C++ system libraries:



Example 1: forest.cpp
Example 2: launcher.cpp



next