VBS生成随机数

Function GetRandomMath(m,n)
    Randomize
    GetRandomMath = Int(((n-m+1) * Rnd) + m)
End Function

msgbox GetRandomMath(20,30)

posted on 2012-06-11 23:07  张飞_  阅读(6603)  评论(0编辑  收藏  举报

导航