Random Functions

- « Examples

- getrandmax »

- PHP Manual
- Random
- Random Functions

# Random Functions

## Table of Contents

- getrandmax — Show largest possible random value
- lcg_value — Combined linear congruential generator
- mt_getrandmax — Show largest possible random value
- mt_rand — Generate a random value via the Mersenne Twister Random Number Generator
- mt_srand — Seeds the Mersenne Twister Random Number Generator
- rand — Generate a random integer
- random_bytes — Get cryptographically secure random bytes
- random_int — Get a cryptographically secure, uniformly selected integer
- srand — Seed the random number generator