Simplify Target (C#) folder strucure

This commit is contained in:
Zev Spitz
2022-01-17 11:59:02 +02:00
parent e69a3d4b3f
commit eded164f64
12 changed files with 11 additions and 20 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());
}
}