Re: [flexcoders] Newbie Question - Random position in an array

2008-03-03 Thread Maciek Sakrejda
://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

Re: [flexcoders] Newbie Question - Random position in an array

2008-03-03 Thread Sean Scott
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

Re: [flexcoders] Newbie Question - Random position in an array

2008-03-01 Thread Sherif Abdou
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]

Re: [flexcoders] Newbie Question - Random position in an array

2008-03-01 Thread Sean Scott
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