Files
basic-computer-games/07_Basketball/csharp/IRandomExtensions.cs
2022-04-11 08:45:15 +10:00

9 lines
194 B
C#

using Games.Common.Randomness;
namespace Basketball;
internal static class IRandomExtensions
{
internal static Shot NextShot(this IRandom random) => Shot.Get(random.NextFloat(1, 3.5f));
}