2024-03-28 21:42:10 -04:00
|
|
|
using System.Security.Cryptography;
|
|
|
|
|
|
|
|
namespace Dungeoneer {
|
|
|
|
|
|
|
|
public static class Util {
|
|
|
|
|
|
|
|
public static int Roll(int sides) {
|
2024-03-30 01:23:02 -04:00
|
|
|
return RandomNumberGenerator.GetInt32(sides) + 1;
|
2024-03-28 21:42:10 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|