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

2014-06-28 Thread Matti Nykyri
On Jun 28, 2014, at 0:13, Matti Nykyri matti.nyk...@iki.fi wrote: On Jun 27, 2014, at 0:00, Kai Krakow hurikha...@gmail.com wrote: Matti Nykyri matti.nyk...@iki.fi schrieb: If you are looking a mathematically perfect solution there is a simple one even if your list is not in the power of

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

2014-06-28 Thread »Q«
On Sat, 28 Jun 2014 19:53:08 -0500 Canek Peláez Valdés can...@gmail.com wrote: On Sat, Jun 28, 2014 at 7:37 PM, gottl...@nyu.edu 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,

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

2014-06-28 Thread Canek Peláez Valdés
On Sat, Jun 28, 2014 at 8:46 PM, »Q« boxc...@gmx.net wrote: On Sat, 28 Jun 2014 19:53:08 -0500 Canek Peláez Valdés can...@gmail.com wrote: On Sat, Jun 28, 2014 at 7:37 PM, gottl...@nyu.edu wrote: On Sat, Jun 28 2014, Canek Peláez Valdés wrote: That doesn't matter. Take a non-negative

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

2014-06-27 Thread thegeezer
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/

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

2014-06-27 Thread Matti Nykyri
On Jun 27, 2014, at 11:55, thegeezer thegee...@thegeezer.net wrote: 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/

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

2014-06-27 Thread Matti Nykyri
On Jun 27, 2014, at 0:00, Kai Krakow hurikha...@gmail.com wrote: Matti Nykyri matti.nyk...@iki.fi 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

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

2014-06-26 Thread Kai Krakow
Matti Nykyri matti.nyk...@iki.fi 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 or 63 you will discard the data and get the next 6 bits. This

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

2014-06-26 Thread Kai Krakow
Kai Krakow hurikha...@gmail.com schrieb: Matti Nykyri matti.nyk...@iki.fi 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 or 63 you will discard the