Files
RpgRoller/RpgRoller/Services/RandomDiceRoller.cs
2026-02-26 11:08:02 +01:00

11 lines
226 B
C#

using System.Security.Cryptography;
namespace RpgRoller.Services;
public sealed class RandomDiceRoller : IDiceRoller
{
public int Roll(int sides)
{
return RandomNumberGenerator.GetInt32(1, sides + 1);
}
}