In MySQL, the RAND()
function allows you to generate a random number. Specifically, the function returns a random floating-point value v in the range 0 <= v < 1.0
.
You can also influence the random number by providing a seed value as an argument.