Page 2 of 2
Re: MakeRandomString
Posted: Sun Nov 23, 2014 3:23 am
by heartbone
STARGÅTE wrote:
This is no uniform distribution, because you get more numbers between 0 and 5 than numbers between 6 and 9.
Good catch about the distribution, but somewhat misleading since all the numbers possible with that code are between 0 and 5.
What blows me away is
infratec's
Random('Z', 'A') and
Random('9', '0').
Re: MakeRandomString
Posted: Sun Nov 23, 2014 3:29 am
by Mistrel
heartbone wrote:What blows me away is infratec's Random('Z', 'A').
When specifying a character using single quotes, it translates into the ASCII (integer) form.
Re: MakeRandomString
Posted: Sun Nov 23, 2014 3:35 am
by heartbone
Wow that's good to know
Mistrel, I had missed that information.
I surely need to increase my screen font size, because I now see the mod and not a divide above.
Another miss.

So never mind about the math incorrection
STARGÅTE.
Re: MakeRandomString
Posted: Sun Nov 23, 2014 3:58 am
by PB
> 99 out of a 100 flips would break any casino
Yep, but that doesn't mean it's not random.
As I said, randomness means you don't get to choose
what the result is, nor do you get to reject a run of
random results just because it doesn't "look right".
Re: MakeRandomString
Posted: Sun Nov 23, 2014 4:14 am
by Mistrel
PB, I think you're confusing random with pseudorandom.