SELECT FLOOR(a + RAND() * (b - a + 1));
mysql--返回一个数字n,使得 a<=n<=b
原文:https://www.cnblogs.com/lishidefengchen/p/13296618.html