mirror of
https://github.com/coding-horror/basic-computer-games.git
synced 2025-12-22 07:10:42 -08:00
13 lines
329 B
C#
13 lines
329 B
C#
using Games.Common.Randomness;
|
|
|
|
namespace Target
|
|
{
|
|
internal static class RandomExtensions
|
|
{
|
|
public static Point NextPosition(this IRandom rnd) => new (
|
|
Angle.InRotations(rnd.NextFloat()),
|
|
Angle.InRotations(rnd.NextFloat()),
|
|
100000 * rnd.NextFloat() + rnd.NextFloat());
|
|
}
|
|
}
|