免費論壇 繁體 | 簡體
Sclub交友聊天~加入聊天室當版主
分享
Board logo

標題: 在msgbox加上亂數 [打印本頁]

作者: windows987    時間: 2012-8-31 21:51     標題: 在msgbox加上亂數

本帖最後由 windows987 於 2012-9-1 10:38 編輯

intHighNumber = 100"  intHighNumber = 100 中的100可以改任何數字
intLowNumber = 1

For i = 1 to 5"1 to 5中的5可以改任何數字
    Randomize
    intNumber = Int((intHighNumber - intLowNumber + 1) * Rnd + intLowNumber)
    Wscript.Echo intNumber
Next
作者: yeazzz3x2c1    時間: 2012-8-31 21:53

好像還蠻實用的哈哈
作者: 达人小G    時間: 2012-8-31 23:02

支持!!!




歡迎光臨 就是愛~VB (http://yeazzz3x2c1.weclub.info/) Powered by Discuz! 7.2