wp_rand
wp_rand ( $min = null, $max = null )
Parameters:- (int) min Optional. Lower limit for the generated number. Accepts positive integers or zero. Defaults to 0.
- (int) max Optional. Upper limit for the generated number. Accepts positive integers. Defaults to 4294967295.
Returns:- (int) A random non-negative number between min and max.
Defined at:Change Log: - Introduced in WordPress: 2.6.2
- Deprecated in WordPress: —
Description
Generates a random non-negative number.