Encapsulate shot number and name

This commit is contained in:
Andrew Cooper
2022-04-10 13:10:46 +10:00
parent 1ce5f7b3a7
commit 11ee731832
7 changed files with 89 additions and 36 deletions

View File

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