random number with seed

后端 未结 6 1182
暗喜
暗喜 2021-01-05 15:35

Reference: link text

i cannot understand the following line , can anybody provide me some example for the below statement?

If two instances of Random are cre

6条回答
  •  北荒
    北荒 (楼主)
    2021-01-05 16:06

    The Random class basically is a Psuedorandom Number Generator (also known as Deterministic random bit generator) that generates a sequence of numbers that approximates the properties of random numbers. It's not generally random but deterministic as it can be determined by small random states in the generator (such as seed). Because of the deterministic nature, you can generate identical result if you the sequence of methods and seeds are identical on 2 generators.

提交回复
热议问题