mirror of
https://github.com/Gurge44/EndlessHostRoles.git
synced 2026-10-20 11:39:54 +00:00
21 lines
531 B
C#
21 lines
531 B
C#
using System;
|
|
|
|
namespace TOHE;
|
|
|
|
public class NetRandomWrapper : IRandom
|
|
{
|
|
public Random wrapping;
|
|
|
|
public NetRandomWrapper() : this(new Random())
|
|
{ }
|
|
public NetRandomWrapper(int seed) : this(new Random(seed))
|
|
{ }
|
|
public NetRandomWrapper(Random instance)
|
|
{
|
|
wrapping = instance;
|
|
}
|
|
|
|
public int Next(int minValue, int maxValue) => wrapping.Next(minValue, maxValue);
|
|
public int Next(int maxValue) => wrapping.Next(maxValue);
|
|
public int Next() => wrapping.Next();
|
|
} |