JS获取数字1-6内的任意一个数字

Var num =  Math.ceil(Math.random()*6);  //1-6范围内的随机整数

 

posted @ 2018-05-30 14:42  哟风  Views(1415)  Comments(0)    收藏  举报