Quick Search:
 
 PHP Code: Rounded random numbers Jump to:  
Category: >> PHP Code >> Rounded random numbers  

<< lastnext >>

Snippet Name: Rounded random numbers

Description: Make nice, clean random numbers. This example will return a whole number between 1 and 1000.

Also see:
» Random Image from Directory
» Random banner picker
» Generate random string
» Random Pronounceable Passwords
» Pick Randomly from Array
» Weighted Random Choice

Comment: (none)

Language: PHP
Highlight Mode: PHP
Last Modified: March 16th, 2009

$foo = ROUND(RAND(1, 1000));


 
   Home |    Search |    Code Library |    Sponsors |    Privacy |    Terms of Use |    Contact Us © 2003 - 2024 psoug.org