Re: Getting randomic integers
[
Date Prev][
Date Next][
Thread Prev][
Thread Next]
[
Date Index]
[
Thread Index]
- Subject: Re: Getting randomic integers
 
- From: Rob Kendrick <rjek@...>
 
- Date: 2010年1月17日 21:39:53 +0000
 
On 2010年1月17日 13:28:23 -0800
Stefan <stefan@chehalispost.com> wrote:
> If one has access to a good Lua bit lib, one can use a MD5 hash 
> derivative for better short-term distribution of result values. Just 
> split the 128 bit hash into multiple groups of bits (4 of 32?),
> combine them somehow (XOR?), and interpret the result as an xx (32 in
> this case) bit integer. This would be made much easier and efficient
> with the inclusion of binary string bit operations, of course.
Going dangerously off-topic; surely a good hash means you can just
truncate to the number of bits you require. No need to "rehash" the
output of the hash by adding them up.
B.
- References:
- Re: Getting randomic integers, Gé Weijers
 
- Re: Getting randomic integers, startx
 
- Re: Getting randomic integers, Majic
 
- Re: Getting randomic integers, startx
 
- Re: Getting randomic integers, Klaus Ripke
 
- Re: Getting randomic integers, Luiz Henrique de Figueiredo
 
- Re: Getting randomic integers, Klaus Ripke
 
- Re: Getting randomic integers, Rob Kendrick
 
- Re: Getting randomic integers, Erik Lindroos
 
- Re: Getting randomic integers, Klaus Ripke
 
- Re: Getting randomic integers, Wolfgang Pupp
 
- Re: Getting randomic integers, Rob Kendrick
 
- Re: Getting randomic integers, Stefan