Random Number
A value selected by a generator so its next result is difficult to predict casually.
What is Random Number in C#?
Random Number — A value selected by a generator so its next result is difficult to predict casually.
class Dice
{
Random random = new();
int Roll()
{
return random.Next(1, 7);
}
}
Level: Apprentice · More C# terms at this level
Updated