Sherif,

Thanks i ended up with var randSeed:Number = new Number(Math.floor(
Math.random() * this.techniColors.length));

On Sat, Mar 1, 2008 at 9:48 PM, Sherif Abdou <[EMAIL PROTECTED]> wrote:

>   something like this should work
>
> var randomNumber:int = Math.Random * myArray.length;
>
> then do something like myArray[randomNumber] whatever
>
>
> ----- Original Message ----
> From: Sean Scott <[EMAIL PROTECTED]>
> To: [email protected]
> Sent: Saturday, March 1, 2008 9:39:39 PM
> Subject: [flexcoders] Newbie Question - Random position in an array
>
>  Hi folks, wondering if someone has a function that returns a random
> position from an array.
>
> Thanks from a newbie,
>
>
> ------------------------------
> Never miss a thing. Make Yahoo your 
> homepage.<http://us.rd.yahoo.com/evt=51438/*http://www.yahoo.com/r/hs>
> 
>

Reply via email to