0
之间的随机数使用AppleScript我想随机显示号码设定范围之间的数字,如:AppleScript的 -
display dialog {random number between "100" , "250" , "310" , "356" , "401" ,}
无法理解的“之间”的作品。
之间的随机数使用AppleScript我想随机显示号码设定范围之间的数字,如:AppleScript的 -
display dialog {random number between "100" , "250" , "310" , "356" , "401" ,}
无法理解的“之间”的作品。
首先"100"
不是一个数字,它是一个字符串。
random number
只能传入from
和to
参数的起始值和结束值时,可以使用,例如
set x to random number from 1 to 100
要从数使用任意的列表得到一个随机数some
display dialog (some integer in {100, 250, 310, 356, 401}) as text