blob: 16a8a77a32173f986639c0e33a22ad57a26a8290 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
namespace DiscoBot.Auxiliary
{
public static class Dice // roll it!
{
private static readonly System.Random Rnd = new System.Random();
public static int Roll(int d = 20)
{
return Rnd.Next(d) + 1;
}
}
}
|