Flasher Archive

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


Subject: Re: FLASH: Select a random number... an unused one
From: Branden Hall
Date: Tue, 25 Jan 2000 15:25:25 GMT

like such...

Set Variable: "shuffles" = 30
Set Variable: "size" = 5
Set Variable: "loop" = 1
Loop While (loop<=size)
Set Variable: "Foo"&loop = loop
Set Variable: "loop" = loop+1
End Loop
Set Variable: "loop" = 0
Loop While (loop<shuffles)
Set Variable: "swap1" = random(size)+1
Set Variable: "swap2" = random(size)+1
Set Variable: "temp" = eval("Foo"&swap1)
Set Variable: "Foo"&swap1 = eval("Foo"&swap2)
Set Variable: "Foo"&swap2 = temp
Set Variable: "loop" = loop+1
End Loop

(my little addition to the FAST! editor :-) )

-= Branden J. Hall
-= Multimedia Developer/Instructor
-= Fig Leaf Software


----- Original Message -----
From: Alias <aliasatwilliam [dot] razorline [dot] com>
To: <flasheratchinwag [dot] com>
Sent: Tuesday, January 25, 2000 9:53 AM
Subject: Re: FLASH: Select a random number... an unused one


>
>
> Branden Hall wrote:
>
> > Well.. I tend to know the #s I will be starting from..
> > so I just put them all into a faked F4 array and then shuffle the values
> > around...
> >
>
> Hmm.. interesting. How do I shuffle values around?
>
> --
> Alias|Rob
>
> (prpl)x-design for the perplexed
>
> www.prplx.com
>
>
>
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> To unsubscribe or change your list settings go to
> http://www.chinwag.com/flasher or email helpatchinwag [dot] com
>
>


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
To unsubscribe or change your list settings go to
http://www.chinwag.com/flasher or email helpatchinwag [dot] com


Replies
  FLASH: Select a random number... an unus, Alias
  Re: FLASH: Select a random number... an , Branden Hall
  Re: FLASH: Select a random number... an , Alias

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