How to randomly select a seq of numbers and if duplicate in seq delete and repick

hi guys i have a simple question. I want to select 3 numbers randomly in a matrix A(1x3) form. if the three numbers are similar to each other - throw away and repopulate the matrix A.if the three numbers are unique then add to an empty matrix B of size 50. so basically fill an empty matrix B of size 50x3 with unique three number rows. how can this be achieved. thank you in advance. cheers

2 Commenti

What is the desired distribution of the numbers in the rows? Uniform(0,1)? Integers from 1 to n for some number n? Or what?
Ashan you just asked a similar question! I guess it was yesterday, I believe you got a concrete answer as well!

Accedi per commentare.

Risposte (0)

Categorie

Richiesto:

il 4 Giu 2015

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by