Add C# implementaion of 86 Target

This commit is contained in:
Andrew Cooper
2021-10-04 17:45:55 +11:00
parent 78154bc36e
commit 39ba532739
12 changed files with 399 additions and 0 deletions

View File

@@ -0,0 +1,14 @@
using System;
namespace Target
{
internal static class RandomExtensions
{
public static float NextFloat(this Random rnd) => (float)rnd.NextDouble();
public static Point NextPosition(this Random rnd) => new (
Angle.InRotations(rnd.NextFloat()),
Angle.InRotations(rnd.NextFloat()),
100000 * rnd.NextFloat() + rnd.NextFloat());
}
}