Displaying 1 result from an estimated 1 matches for "aa_no".
Did you mean:
aa_ns
2009 Dec 15
2
Random numbers for a group
...
Now I need to generate the uniform random numbers (against the no. of instances) and assign these numbers generated against the respective names. E.g. I need to generate 12 random numbers and assign these numbers against AAA.
Individually I can generate them as
AAA_no = c(runif(12))
AA_no = c(runif(17))
......
and so on.
And in the end I can club them as
ran_nos = c(AAA_no, AA_no, ..........D_no)
My problem is if there are say 1000 names, then it will be a cumbersome job to generate 1000 individual random number sets and then to combine them to form a si...