简体   繁体   中英

What internal algorithm does C# use to generate random number using Next method of Random class instance?

C# has provided an inbuilt functionality to generat random numbers using Next method of Random class instance. I want to understand the algorithm C# internally uses to generate random number. And does every number has equal probability of being generated by this method?

The source for the Random class in .Net 4.8 is here

In .Net Core, it's here

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM