Strange random-behaviour

Hi Folks,

On running a code like this, ALWAYS results "6 Knifes". It only changes by adding or deleting one
or more weapons. But after changing the ammount of the choice, the same weapon is shown again and again.

Code:
CasualWeapon_ = choose("Crossbow", "6 Knifes", "Hellbarde", "Warhammer", "10 Shuriken", "Longsword");
show_message(CasualWeapon_);
The same behaviour with using numbers instead of "weapon".
How can I get rid of it?

Regards,
Archi
 

sylvain_l

Member
not a strange random behaviour; but a feature to ease the debugging/allow to generate the same "random level"; etc...

by default the pseudo-"random" functions of GM always give the same serie of output (as it use the same seed); you need to do 1 call to randomize() at start of your play which change to a random seed value to have a different serie of pseudo random output each time.
 
Top