Using Randomize() before Rnd() in VB.NET

前端 未结 3 1695
野趣味
野趣味 2020-12-07 03:46

I have previously been told that I should always use Randomize() before I use Rnd() in a VB.NET application. Yet, it always seems to work fine with

3条回答
  •  一整个雨季
    2020-12-07 04:35

    Randomize() initializes the first seed of Rnd(). If you won't use it - VB.NET will use the default seed number.

提交回复
热议问题