Random number generator with Statistics!
Under C Programming
Discuss, 2 Comments.
Follow any responses to this entry through the RSS 2.0 feed.
Posted on Tuesday, October 3rd, 2006 at 1:25 am
Under C Programming
Discuss, 2 Comments.
Follow any responses to this entry through the RSS 2.0 feed.
Posted on Tuesday, October 3rd, 2006 at 1:25 am
Hey guys, I’ve completed my generator, and done some stats too. Check out the windows binary and my sourcecode.
Should compile on linux no problems! Binary - Source Code
Email me – james at worm dot me dot uk if you want me to link to your blog! (I can also host a blog for friends too).
© 2009 James Walmsley. All rights reversed. Contact us.
03-Oct-06
You will see in the source code that I’ve limited it to 100000 random numbers. In actual fact this can be increased to around 520000 numbers however stats may not work (the sum can become too big).
Limiting also prevents problems when trying to compile with Vis Studio. As this wont let the array size be chosen at run-time by the user!
James
09-Oct-06
Tested the compile on Debian linux under GCC works perfectly.
$ gcc rand.c -o rand
This will also compile for MAC OS X
(Truly multi-platform C code!)
Jim