Generating random numbers in C

Hello everyone

I have a task to generate 300 random particles in a 2-D plane ( 1 x 1)

The steps are given as :
1. Generate two numbers
2. Scale them to max dimension
3. Repeat 1 and 2 in a 'for loop' to generate 300 particles ans store them in a verctor px and py .
4. get the output

let say if I dnt want output in 2D plane I just want the output as random numbers stored in Px and Py

What could be the start for this program ? can anyone guide me ?

Px and Py will be used as Array ?
Topic archived. No new replies allowed.