I need some non-repeated random values of variable A

For example:

Variable A=[1 2 3 4 5]

Answer should be any three random values of A.

Answer =[1 5 2] or [1 3 4] or [3 2 4] etc. but not [1 1 5] or [5 3 5] [1 1 1]etc.

More Ghanshyam G. Tejani's questions See All
Similar questions and discussions