摘要: function selectFrom( lowerValue, upperValue ){ var choices = upperValue - lowerValue + 1; return Math.floor( Math.random() * choices + lowerValue );}var num = selectFrom( 2,10 );alert( num ); 阅读全文
posted @ 2014-01-20 16:59 sunsweet 阅读(409) 评论(0) 推荐(0) 编辑