Re: simple PRNG?



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. Time
to break out your debugger, perhaps.

Put your own house in order before complaining about other people.

--
Richard Heathfield <http://www.cpax.org.uk>
Email: -http://www. +rjh@
Google users: <http://www.cpax.org.uk/prg/writings/googly.php>
"Usenet is a strange place" - dmr 29 July 1999
.



Relevant Pages

  • Re: simple PRNG?
    ... So you're advocating a non-conforming compiler system. ... jacob at jacob point remcomp point fr ...
    (comp.lang.c)
  • Re: LDBL_MAX -1.#QNAN0e+000 with MinGW?
    ... compiler system it is equal to double precision. ... Microsoft's implementation supports the long double type, to the precision required by the Standard to which it conforms. ...
    (comp.lang.c)
  • Re: GOP and Tea Party Stuck in the Past
    ... zup wrote: ... us guys on the right aren't the ones advocating the use of failed ... socioeconomic systems from the 20th century that resulted in 100 million ...
    (talk.politics.misc)
  • Re: pcb fab for low power plane impedance
    ... "biggest cap you can find" theory? ... This article sounds like he is not advocating a multiple parallel capacitor approach. ...
    (sci.electronics.design)
  • Re: Type of argc
    ... Clearly dmr was asleep that day. ... reason to switch them. ... I am not advocating a change. ...
    (comp.std.c)