Random round?


hey all,
first off, kglad sweet sound stuff last time. dude, owe ya one.

anyway, have question. i'm trying set variable (let's call 'numberizer') random number, i'm trying set somewhere between 1 , 10. there limiter math.random(); function? i'm unfamiliar math.round(x); function, here have tried far:

var numberizer:number = math.random();
var numberizer:number = math.round(10);

now, i'm assuming i'm wrong on this. if can me out, amazing. doesn't require amazing effort this.

thanks in advance, friends :)

- tk

if want generate random integer between 1 , 10 can use:



More discussions in ActionScript 1 and 2


adobe

Comments

Popular posts from this blog

Connecting Raspberry Pi 2 to P10(1R)-V706 LED Dot Matrix - Raspberry Pi Forums

TypeError: <unknown> is not a numpy array - Raspberry Pi Forums

datso and removing imagetitle - Joomla! Forum - community, help and support