« Previous Entry | Main | Next Entry »

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

Author:  |  | (0) comments

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
参照: http://flashorbit.com/?p=84

(0) comments:

Leave a comment:

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