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. |