« 2009年04月 | Main | 2009年06月 »

Monthly Archive | 2009年05月

2009年05月25日

範囲を指定した固有のランダム数をつくる

ex.22 〜 66 の間で重ならない 10のランダムの数をつくる

function singleRandomInt(min:int, max:int, notValue:Array):int {

	var intFount : int = Math.floor(Math.random() * max) + min;
	
	//check unique num
	for(var i=0; i

"範囲を指定した固有のランダム数をつくる" more.. »

Author:  |  | (0) comments | 

Recent Entry
Category Archive
Monthly Archive
About
Powered by
Movable Type 3.33-ja