PHP random functions

PHP random functions

  • 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
  • str_shuffle — Randomly shuffles a string
  • array_rand — Pick one or more random keys out of an array
  • shuffle — Shuffle an array

Posted

in

by

Tags:

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *