MATLAB: I have two number i want choose one of them randomly!

chooserandomlystring

i have two string number i want choose one of them randomly can you help me please?

Best Answer

str={'10' '20'}
idx=randi(2)
out=str(idx)