random_int Generates cryptographically secure pseudo-random integers &reftitle.description; intrandom_int intmin intmax Generates cryptographic random integers that are suitable for use where unbiased results are critical (i.e. shuffling a Poker deck). The sources of random are as follows: On Windows CryptGenRandom is used exclusively arc4random_buf is used if it is available (generally BSD specific) /dev/arandom is used where available /dev/urandom is used where none of the above is available &reftitle.parameters; min The lowest value to be returned down to PHP_INT_MIN. max The highest value to be returned up to PHP_INT_MAX. &reftitle.returnvalues; Returns a crypto-secure random integer. &reftitle.errors; Issues an E_WARNING and returns &false; when a sufficient source of randomness is unavailable. &reftitle.examples; <function>random-int</function> example ]]> &example.outputs.similar; &reftitle.seealso; random_bytes