# MATLAB: Generating random number from a vector

random values

Hello everyone, If i have a vector like A = [1 2 3 4 5 6…….30] and i want to pick a random value from this vector A. How can i do that. Thank you so much.

• A(randi(numel(A))