Added back the Random plug.

This commit is contained in:
José Pedro 2017-06-07 19:29:28 +01:00
parent 2d40461181
commit 5103e8e72d

View file

@ -36,7 +36,7 @@ namespace Cosmos.System.Plugs.System
return (int)((uint)(GetUniform() * diff) + minValue);
}
public static void NextBytes(byte[] buffer)
public static void NextBytes(Random aThis, byte[] buffer)
{
for (int i = 0; i < buffer.Length; i++)
{
@ -44,7 +44,7 @@ namespace Cosmos.System.Plugs.System
}
}
public static double NextDouble()
public static double NextDouble(Random aThis)
{
return GetUniform();
}