Seeding Multiple Random Number Generators

前端 未结 2 655
感动是毒
感动是毒 2020-12-18 03:58

I have recently been discussing the initialisation of multiple random number generators of the same type in the comments of another post and in that discussion we asked the

2条回答
  •  Happy的楠姐
    2020-12-18 04:20

    Not sure what "multiple streams of random numbers" means. In random numbers there is no relationship between any two random numbers, there is no order, each is a standalone instance.

    If you use a cryptographic PRNG no seeding is necessary. Consider the .net RNGCryptoServiceProvider Class.

提交回复
热议问题