Edward K. answered 11/02/21
Senior Quality Assurance Engineer 10+ Years in the Software Industry
.NET offers a Random class in their System library. To use this class add a using statement at the top of your file: using System.Random; then create a new Random instance: var rand = new Random(). Then to generate a random number call the Next() method, which returns a non-negative random integer. Please reach out if you have further questions!