This is a discussion on Please Help Me within the C Programming forums, part of the General Programming Boards category; I have to create a program that generates 100 random numbers between 0 and 99,999 and store the numbers in ...

I have to create a program that generates 100 random numbers between 0 and 99,999 and store the numbers in a 10 by 10 table. Then calculate the mean, varience, and standard deviation of all the numbers.

Thank you

2. First off, you need to create a program that generates 100 random numbers, between 0 and 99999, and stores them in a 10x10 grid... oh wait, that's what you just said.

Come on people ! At least _TRY_ your homework first!

Quzah.

3. You must have have done something, surely?
I don't think yout tutor would set you homework about a topic you havent covered.

4. Use randomize()

deviation and variance definitions; look them up.

5. Code:
```#include<stdlib.h>
#include<time.h>
#define now_would_it return 0;}
#define you_lazy_slob_ long a[10][10];
#define unregistered {srand((unsigned)time(0));
#define you_could_have_ for(j=0;j<10;j++)
#define it_wouldnt_have_hurt_ {l=rand()%100000;a[j][i]=l;}
#define do_your_ int i,j;
#define own_work_ long l;

int main()
unregistered