Return a random decimal number (no seed value - so it returns a completely random number >= 0 and <1):
SELECT RAND();
Try it Yourself »
The RAND() function returns a random number between 0 (inclusive) and 1 (exclusive).
RAND(
seed)
Parameter | Description |
---|---|
seed | Optional. If seed is specified, it returns a repeatable sequence of random numbers. If no seed is specified, it returns a completely random number |
Works in: | From MySQL 4.0 |
---|
截取页面反馈部分,让我们更快修复内容!也可以直接跳过填写反馈内容!