Home » MySQL Math RAND() Function

MySQL Math RAND() Function

by Online Tutorials Library

MySQL RAND() Function

The rand() is a Math function of MySQL. This function is used to generate the random number.

Syntax

Returns

This function returns a random number or a random number within a range.

Example 1

Output:

MySQL Math RAND() Function

Example 2

Output:

MySQL Math RAND() Function

Example 3

Output:

MySQL Math RAND() Function

Next TopicMySQL Math

You may also like