How is a random number generated at runtime?

You may checkout this article. According to the documentation the specific implementation used in .NET is based on Donald E. Knuth’s subtractive random number generator algorithm. For more information, see D. E. Knuth. “The Art of Computer Programming, volume 2: Seminumerical Algorithms”. Addison-Wesley, Reading, MA, second edition, 1981.

Leave a Comment