| 发表于:2007-04-03 14:51:12 楼主 |
vb.net 多线程下的随机数,为什么每个线程产生的随机数一样啊, 哪位大哥有解决方法??? ************************************************** private function getrndid(byval imin as integer, byval imax as integer) as integer try dim iresult as integer = 0 randomize() iresult = cint(int(((imax - imin) * rnd()) + imin)) return iresult catch ex as exception return 0 end try end function |
|
|
|
|