Gentoo Archives: gentoo-user

From: Kai Krakow <hurikhan77@×××××.com>
To: gentoo-user@l.g.o
Subject: [gentoo-user] Re: Re: OT: Mapping random numbers (PRNG)
Date: Fri, 27 Jun 2014 17:59:35
Message-Id: nfn08b-cfp.ln1@hurikhan77.spdns.de
In Reply to: Re: [gentoo-user] Re: OT: Mapping random numbers (PRNG) by thegeezer
1 thegeezer <thegeezer@×××××××××.net> schrieb:
2
3 > On 06/26/2014 11:07 PM, Kai Krakow wrote:
4 >>
5 >> It is worth noting that my approach has the tendency of generating random
6 >> characters in sequence.
7 >
8 > sorry but had to share this http://dilbert.com/strips/comic/2001-10-25/
9
10 :-)
11
12 I'm no mathematician, but well, I think the swapping approach fixes it. What
13 this makes clear, however, is that randomness on its own does not completely
14 ensure unpredictable items if combined with other functions. One has to
15 carefully think about it. I, for myself, would always stay away from using
16 modulo to clip the random numbers. It will always create bias. My first idea
17 introduced predictable followers (you always knew that the next char had a
18 specific probability related to the tail length of the list).
19
20 You can actually learn from Dilbert comics. ;-)
21
22 --
23 Replies to list only preferred.

Replies

Subject Author
Re: [gentoo-user] Re: Re: OT: Mapping random numbers (PRNG) Neil Bothwick <neil@××××××××××.uk>