JS产生随机数的几个用法详解
JS产生随机数的几个用法详解 [removed] function GetRandomNum(Min,Max) { var Range = Max - Min; var Rand = Math.random(); return(Min + Math.round(Rand * Range)); } var num = GetRandomNum(1,10); alert(num); [removed] var chars = ['0','1','2','3','4','5','6','7','8','9','A','B','C','D','E','F','G','H','I','
用户评论