Pseudorandom Numbers

The following functions generate random numbers NOT suitable for cryptographic functions.

rand

Generates a random UInt32

Parameters:

  • none

Usage:

rand()

Returns:

  • a UInt32 that is a random number.

rand64

Generates a random UInt64

Parameters:

  • none

Usage:

rand64()

Returns:

  • a UInt64 that is a random number.

Did this page help you?