Reg:Flash
-
how to get random values into global function in flash8
-
how to get random values into global function in flash8
-
how to get random values into global function in flash8
if you want random numbers more than a single number then you can use: var test:Number; var str:String; str = ''; // Loop for the count of the string that how long you want random number(i.e. 01234 or 98765 etc) for(i = 0; i < 5; i++) { test = random(9); //will reurn random from 0 to 9 str += test.toString(); } trace("Number String = " + str);
-------------------------------------------------------------------------------------------------- Hiral Shah India If you think that my answer is good enough and can be helpful for other then don't forget to vote. :)
-
if you want random numbers more than a single number then you can use: var test:Number; var str:String; str = ''; // Loop for the count of the string that how long you want random number(i.e. 01234 or 98765 etc) for(i = 0; i < 5; i++) { test = random(9); //will reurn random from 0 to 9 str += test.toString(); } trace("Number String = " + str);
-------------------------------------------------------------------------------------------------- Hiral Shah India If you think that my answer is good enough and can be helpful for other then don't forget to vote. :)
Thank u for ur reply
-
Thank u for ur reply