Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
任何人都知道如何做到这一点?:
say 'something' or say 'something' or say 'something'
我想在这些说命令之间随机选择。怎么做?
/* REXX */ x = RANDOM(1,3) Select when x = 1 then say 'something' when x = 2 then do say 'something' Otherwise say 'something' end /* Select */ Pull answer . if answer='NO' then say 'Answer is NO.'
我建议使用Random函数和Select语句。