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:
  • 4: .
  • 6: .

Description

Generates a random non-negative number.

Related Functions

wp_cron, wp_head, wp_upgrade, _wp_cron, wp_readonly

Top Google Results

User discussions

wpseek mobile