in reply to Re^2: Creating a random generator
in thread Creating a random generator
The first 3 scalars are default values. If they are not declared differently in the array, then they don't change. If they are declared in the array, then they change to the new value.
Also, all variables have to be as small as possible. I try to conserve space as much as possible, hence the one and two letter variable names.
In the array, the name of the monster will be chosen randomly, but the other information such as which book it comes from and what page it is on must be declared, hopefully, within the array. If I have to do separate hashes(?) for each value, it will be way to big. Other random generators with similar variables have up to 10 different variables changed all on one line.
Hopefully that made sense.
There is a random generation program that I use for what I am trying to recreate in Perl called TableSmith. If you know of it, that will show you where I am coming from.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Creating a random generator
by wfsp (Abbot) on Sep 08, 2007 at 09:06 UTC | |
by Lady_Aleena (Priest) on Sep 08, 2007 at 11:09 UTC | |
by wfsp (Abbot) on Sep 08, 2007 at 11:45 UTC | |
by Lady_Aleena (Priest) on Sep 08, 2007 at 13:09 UTC | |
by runrig (Abbot) on Sep 13, 2007 at 21:19 UTC |