Flasher Archive

[Previous] [Next] - [Index] [Thread Index] - [Previous in Thread] [Next in Thread]


Subject: RE: FLASH: random question
From: Paul Willoughby
Date: Fri, 1 Sep 2000 11:59:12 +0100

anybody have an idea of the way best way to generate a random number between
certain paramaters. Here's my attempts to get a random number between 260
and 290:

loopwhile (n > 260)
SetVariable: n = Random (290)
loop

This always seem to produce 261 (why?). It also seems pretty inefficient.
Would this be better (I can't try it at the moment as I've just had to
replace my sodding hard drive and I haven't installed Flash yet as the
sodding administrator is too lazy *bad day*)

SetVariable: n = (Random (30) + 261)

Anyone's help would be great

Paul

-----Original Message-----
From: Randy Kato [rkatoatbraincraft [dot] com (mailto:rkatoatbraincraft [dot] com)]
Sent: 31 August 2000 23:07
To: flasheratchinwag [dot] com
Subject: Re: FLASH: random question


Julie,

The F4 random function returns values starting with 0 (not 1), so you'll
want to
add 2 to skip frame 1.

HTH,
Randy


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
NudeGuru.com is proud to sponsor the Flasher list
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
IT'S THE ART OF MONEY, HONEY!
Tips and Advice from some of the most popular Flash
artists + industry power-brokers on how to hold onto
your rights, negotiate contracts and get full value
for your work.http://www.nudeguru.com from Franke James
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
To unsubscribe or change your list settings go to
http://www.chinwag.com/flasher or email helpatchinwag [dot] com


Replies
  RE: FLASH: random question, Kurt Dommermuth

[Previous] [Next] - [Index] [Thread Index] - [Next in Thread] [Previous in Thread]