dimanche 3 janvier 2016

Generate a random vector multiple times until a condition is complete

I have a vector x=(1,2,3,4,...20) and I want to generate vectors with 5 elements from this vector(elements can be repeated), until there are shown all the elements of the first vector at least once. And then I have to represent the data with a histogram. Any idea how can I do this? Thanks in advance




Aucun commentaire:

Enregistrer un commentaire