mirror of
https://github.com/danbulant/Cosmos
synced 2026-05-24 12:35:31 +00:00
Added back the Random plug.
This commit is contained in:
parent
2d40461181
commit
5103e8e72d
1 changed files with 2 additions and 2 deletions
|
|
@ -36,7 +36,7 @@ namespace Cosmos.System.Plugs.System
|
||||||
return (int)((uint)(GetUniform() * diff) + minValue);
|
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++)
|
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();
|
return GetUniform();
|
||||||
}
|
}
|
||||||
Loading…
Reference in a new issue