Javatpoint Logo
Javatpoint Logo

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




Please Share

facebook twitter google plus pinterest

Learn Latest Tutorials


Preparation


Trending Technologies


B.Tech / MCA