Page 1 of 1
Random Number Function?
Posted: Tue Jul 21, 2020 8:54 am
by kronenblatt
Is there any function that generates a random number, ideally uniform between 0 and 1 (or 1 and 100)?
EDIT: would the Dice() function fulfil that purpose? Is then Dice(100) a 100-sided die, i.e., random integer number between 1 and 100?
Re: Random Number Function?
Posted: Tue Jul 21, 2020 3:56 pm
by pipfromslitherine
Rand should do the trick. You can see a list of all commands in Documents/My Games/FieldOfGloryEmpires/AUTODOCS/Battlescript.txt
Cheers
Pip
Re: Random Number Function?
Posted: Tue Jul 21, 2020 4:45 pm
by kronenblatt
pipfromslitherine wrote: Tue Jul 21, 2020 3:56 pm
Rand should do the trick. You can see a list of all commands in Documents/My Games/FieldOfGloryEmpires/AUTODOCS/Battlescript.txt
Cheers
Pip
Thanks Pip: appreciated! You wouldn't happen to know the answer to my question in
a separate thread too; on creating and calling upon a new function?
Re: Random Number Function?
Posted: Thu Jul 23, 2020 1:39 pm
by Pocus
I use Dice for everything I think.
Re: Random Number Function?
Posted: Sat Jul 25, 2020 6:44 am
by kronenblatt
Pocus wrote: Thu Jul 23, 2020 1:39 pm
I use Dice for everything I think.
Thanks Pocus! And is then Dice(
100) a
100-sided die, i.e., random integer number from
uniform distribution between
1 and 100?
Re: Random Number Function?
Posted: Mon Jul 27, 2020 3:09 pm
by Pocus
yes