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