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. Syntaxselect rand(); ReturnsThis function returns a random number or a random number within a range. Example 1Select rand(); Output: Example 2select rand()*3; Output: Example 3Select rand()-0.4; Output:
Next TopicMySQL Math
|