Files
RobustToolbox/Robust.Shared/Random/RobustRandom.cs
T
AcruidandGitHub 2183cd7ca1 Massive Namespace Cleanup (#1544)
* Removed the Interfaces folder.
* All objects inside the GameObjects subfolders are now in the GameObjects namespace.
* Added a Resharper DotSettings file to mark the GameObjects subfolders as not providing namespaces.
* Simplified Robust.client.Graphics namespace.
* Automated remove redundant using statements.
2021-02-10 23:27:19 -08:00

33 lines
661 B
C#

namespace Robust.Shared.Random
{
public class RobustRandom : IRobustRandom
{
private readonly System.Random _random = new();
public int Next()
{
return _random.Next();
}
public int Next(int minValue, int maxValue)
{
return _random.Next(minValue, maxValue);
}
public int Next(int maxValue)
{
return _random.Next(maxValue);
}
public double NextDouble()
{
return _random.NextDouble();
}
public void NextBytes(byte[] buffer)
{
_random.NextBytes(buffer);
}
}
}