://www.truviso.com
-Original Message-
From: Sean Scott [EMAIL PROTECTED]
Reply-To: flexcoders@yahoogroups.com
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Newbie Question - Random position in an array
Date: Sat, 1 Mar 2008 22:55:49 -0600
Sherif,
Thanks i ended up with var
PROTECTED] sean.net%40gmail.com
Reply-To: flexcoders@yahoogroups.com flexcoders%40yahoogroups.com
To: flexcoders@yahoogroups.com flexcoders%40yahoogroups.com
Subject: Re: [flexcoders] Newbie Question - Random position in an array
Date: Sat, 1 Mar 2008 22:55:49 -0600
Sherif,
Thanks i ended up
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: flexcoders@yahoogroups.com
Sent: Saturday, March 1, 2008 9:39:39 PM
Subject: [flexcoders]
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
4 matches
Mail list logo