MYSQL使用rand()函數生成必定範圍的隨機數

生成≥a且≤b的隨機數 x=a y=(b-a)+1web select floor(x+rand()*y); 例如生成≥2且≤10的隨機數svg select floor(2+rand()*9);
相關文章
相關標籤/搜索