I am trying to generate 29 random numbers between 01 and 99 with out duplication. The code I have come up with is -
*as.integer((sample(runif(40,0,1), size=29, replace = F, prob = NULL))100))
Basically I have tried generating 40 samples from uniform distribution and then taken 29 samples from them. I multiplied it by 100 then took the integer values.
Any help would be appreciated.
Aucun commentaire:
Enregistrer un commentaire