Re: simple PRNG?
- From: jacob navia <jacob@xxxxxxxxxx>
- Date: Fri, 21 Mar 2008 11:39:55 +0100
Richard Heathfield wrote:
jacob navia said:
<snip>
The lcc-win compiler system uses this:
Let us not forget that the lcc-win compiler system does not conform to ISO/IEC 9899:1999, which you have said this very morning is "standard C". So you're advocating a non-conforming compiler system.
<snip>
This needs 32 bit maths as you see. I think it could be ported to 16
bits by making the result mod 2^16 -1
Yes, it can. Unfortunately, this gives the result 32767 on every call.
I said "ported". Not just copied
--
jacob navia
jacob at jacob point remcomp point fr
logiciels/informatique
http://www.cs.virginia.edu/~lcc-win32
.
- Follow-Ups:
- Re: simple PRNG?
- From: Richard Heathfield
- Re: simple PRNG?
- References:
- simple PRNG?
- From: copx
- Re: simple PRNG?
- From: Morris Dovey
- Re: simple PRNG?
- From: copx
- Re: simple PRNG?
- From: Richard Heathfield
- Re: simple PRNG?
- From: copx
- Re: simple PRNG?
- From: jacob navia
- Re: simple PRNG?
- From: Richard Heathfield
- simple PRNG?
- Prev by Date: Re: simple PRNG?
- Next by Date: Re: bunch of pedants
- Previous by thread: Re: simple PRNG?
- Next by thread: Re: simple PRNG?
- Index(es):
Relevant Pages
|