C-Sharp | Java | Python | Swift | GO | WPF | Ruby | Scala | F# | JavaScript | SQL | PHP | Angular | HTML
MySQL RAND() FunctionThe rand() is a Math function of MySQL. This function is used to generate the random number. Syntax
select rand(); Returns
This function returns a random number or a random number within a range. Example 1Select rand(); Output:
Example 2
select rand()*3; Output:
Example 3Select rand()-0.4; Output:
Next TopicMySQL Math
|