On 24/03/17 16:08, Willard Goosey wrote:

This is probably one of the largest and least compatible Small C
libraries ever. I don't know rather to be proud or horrified.  :-)

You can be both!

I know I miss printf().

Rats, I thought it had one - it has been a while since I've last used it.

And if someone has an integer-only rand() that doesn't converge after
a mere 200-odd iterations, I could really use it!

LCG is the goto (no pun intended) for this - 
https://en.wikipedia.org/wiki/Linear_congruential_generator.
I'll see if I can dig up some 16 bit values for it later tonight (I'm
reasonably confident that Small-C doesn't have 32 bit support, let alone
64 bit).


--
Regards,
 Daryl Tester
 Handcrafted Computers Pty. Ltd.

Reply via email to