In general I use do-while loops only very rarely; as mentioned though the do while loop is not your problem. If you are trying to get a random number between certain numbers it should be a one line of code... are you doing something sophisticated that requires more than simply adjusting a call to Math.random?
~harris --- [EMAIL PROTECTED] wrote: > Are do while loops used a lot in Flex or are they > generally avoided? I know > that if you ask the computer to do a do while loop > that never ends it will > probably slow the computer down. But the loops I > have tried to make have been very > slow? What I have been trying to do is generate a > random number over and over > again until it meets a certain criteria. > __________________________________ Do you Yahoo!? Yahoo! Small Business - Try our new resources site! http://smallbusiness.yahoo.com/resources/

