Re: [gentoo-user] Re: Re: OT: Mapping random numbers (PRNG)

2014-06-28 Thread Matti Nykyri
On Jun 29, 2014, at 0:28, Kai Krakow wrote: > > Matti Nykyri schrieb: > >>> On Jun 27, 2014, at 0:00, Kai Krakow wrote: >>> >>> Matti Nykyri schrieb: >>> If you are looking a mathematically perfect solution there is a simple one even if your list is not in the power of 2! Take 6 b

Re: [gentoo-user] Re: Re: OT: Mapping random numbers (PRNG)

2014-06-28 Thread Canek Peláez Valdés
On Sat, Jun 28, 2014 at 7:37 PM, wrote: > On Sat, Jun 28 2014, Canek Peláez Valdés wrote: > >> That doesn't matter. Take a non-negative integer N; if you flip a coin >> an infinite number of times, then the probability of the coin landing >> on the same face N times in a row is 1. > > This is cer

Re: [gentoo-user] Re: Re: OT: Mapping random numbers (PRNG)

2014-06-28 Thread gottlieb
On Sat, Jun 28 2014, Canek Peláez Valdés wrote: > That doesn't matter. Take a non-negative integer N; if you flip a coin > an infinite number of times, then the probability of the coin landing > on the same face N times in a row is 1. This is certainly true. > This means that it is *guaranteed*

Re: [gentoo-user] Re: Re: OT: Mapping random numbers (PRNG)

2014-06-28 Thread Canek Peláez Valdés
On Sat, Jun 28, 2014 at 4:28 PM, Kai Krakow wrote: [ ... ] > I cannot follow your reasoning here - but I'd like to learn. Actually, I ran > this multiple times and never saw long sets of the same character, even no > short sets of the same character. The 0 or 1 is always rolled over into the > nex

[gentoo-user] Re: Re: OT: Mapping random numbers (PRNG)

2014-06-28 Thread Kai Krakow
Matti Nykyri schrieb: >> On Jun 27, 2014, at 0:00, Kai Krakow wrote: >> >> Matti Nykyri schrieb: >> >>> If you are looking a mathematically perfect solution there is a simple >>> one even if your list is not in the power of 2! Take 6 bits at a time of >>> the random data. If the result is 62

Re: [gentoo-user] Re: Re: OT: Mapping random numbers (PRNG)

2014-06-27 Thread Neil Bothwick
On Fri, 27 Jun 2014 19:50:15 +0200, Kai Krakow wrote: > You can actually learn from Dilbert comics. ;-) Unless you're a PHB, they never learn. -- Neil Bothwick "You know how dumb the average person is? Well, statistically, half of them are even dumber than that" - Lewton, P.I. signature.asc

[gentoo-user] Re: Re: OT: Mapping random numbers (PRNG)

2014-06-27 Thread Kai Krakow
thegeezer schrieb: > On 06/26/2014 11:07 PM, Kai Krakow wrote: >> >> It is worth noting that my approach has the tendency of generating random >> characters in sequence. > > sorry but had to share this http://dilbert.com/strips/comic/2001-10-25/ :-) I'm no mathematician, but well, I think the