From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,5291fa0ea59b8b29 X-Google-Attributes: gid103376,public From: Mats.Weber@elca-matrix.ch (Mats Weber) Subject: Re: Random Number Generation Date: 1996/10/03 Message-ID: #1/1 X-Deja-AN: 187007337 references: <52uaj7$e9s@newton.cc.rl.ac.uk> organization: ELCA Matrix SA newsgroups: comp.lang.ada Date: 1996-10-03T00:00:00+00:00 List-Id: >Suppose you have a high quality random number generator R1 in the range >0 .. 1023 >and you want to turn it into a high quality random number generator R2 >in the range 0 .. 2. [...] The problem here is that you rarely have a high quality generator on all bits of the result. Generators usually are high quality on their most significant bits, and it is very important to use the leftmost bits of the original generator during the range reduction.