Random()

來(lái)自ALSROBOT WiKi
跳轉(zhuǎn)至: 導(dǎo)航搜索
long random (long howbig)   

生成隨機(jī)數(shù)

生成[0, howbig-1]范圍的隨機(jī)數(shù).

參數(shù):

  • howbig 最大值



long random (long howsmall, long howbig)    

生成隨機(jī)數(shù)

生成[howsmall, howbig-1]范圍的隨機(jī)數(shù).

參數(shù):

  • howsmall 最小值
  • howbig 最大值