Use common library in 86_Target

This commit is contained in:
Andrew Cooper
2022-03-05 15:43:03 +11:00
parent 2c1e4af702
commit 8165f7a161
9 changed files with 82 additions and 124 deletions

View File

@@ -1,12 +1,10 @@
using System;
using Games.Common.Randomness;
namespace Target
{
internal static class RandomExtensions
{
public static float NextFloat(this Random rnd) => (float)rnd.NextDouble();
public static Point NextPosition(this Random rnd) => new (
public static Point NextPosition(this IRandom rnd) => new (
Angle.InRotations(rnd.NextFloat()),
Angle.InRotations(rnd.NextFloat()),
100000 * rnd.NextFloat() + rnd.NextFloat());