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

Random number generator with Statistics!

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).

Discuss:

2 Responses to “Random number generator with Statistics!”

  1. James

    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

  2. James (me)

    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

Leave a Reply


Some humdrum motto!

© 2009 James Walmsley. All rights reversed. Contact us.