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 number between min and max.
Defined at:
Change Log:
  • 4: .
  • 6: .

Description

Generates a random number.

Related Functions

wp_head, wp_upgrade, wp_cron, wp_readonly, _wp_cron

Top Google Results

User discussions

wpseek mobile