Clear Filters
Clear Filters

i have two number i want choose one of them randomly!

6 views (last 30 days)
i have two string number i want choose one of them randomly can you help me please?

Accepted Answer

Azzi Abdelmalek
Azzi Abdelmalek on 29 Dec 2013
Edited: Azzi Abdelmalek on 29 Dec 2013
str={'10' '20'}
idx=randi(2)
out=str(idx)

More Answers (0)

Community Treasure Hunt

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

Start Hunting!