I have two variables R
and S
. I defined them as int R[1000]
and int S[100000]
. R
will hold the values from 0
to 999
. Now, I want the R
values to be uniformly distributed in S
(100000
values ). The number of entries in S
should be 100000
but they should be uniformly distributed in the range of 0-999
.
How can I do this?