Flasher Archive

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


Subject: FLASH: Faking an array
From: Ryan Creighton
Date: Thu, 10 Aug 2000 14:45:24 +0100



Hello all!

i'm an accomplished math moron.

i know exactly what i want to do, and some inkling of how to do it, but
before i get buried in bad numbers, i thought i might poll the list for the
best method.

i'm creating a replayable game. When it starts up, it has to randomly pick
5 characters from a pool of 15.

This kind of thing would be easier with array functionality ... no, i can't
use Flash5 for it ...

BUT ... i guess the best thing to do would be to choose a random character
from the list, remove that character from the list, and then repeat 4 more
times? Extensive use of the substring property is my only guess.

Other opinions?

Thanks!

- Ryan Creighton

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Full flasher archive now available online at:
http://www.chinwag.com/flasher/archive.shtml
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
To unsubscribe or change your list settings go to
http://www.chinwag.com/flasher or email helpatchinwag [dot] com


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