mirror of
https://github.com/coding-horror/basic-computer-games.git
synced 2026-01-04 17:17:59 -08:00
Update 62_Mugwump
This commit is contained in:
7
62_Mugwump/csharp/IRandomExtensions.cs
Normal file
7
62_Mugwump/csharp/IRandomExtensions.cs
Normal file
@@ -0,0 +1,7 @@
|
||||
namespace Mugwump;
|
||||
|
||||
internal static class IRandomExtensions
|
||||
{
|
||||
internal static Position NextPosition(this IRandom random, int maxX, int maxY) =>
|
||||
new(random.Next(maxX), random.Next(maxY));
|
||||
}
|
||||
Reference in New Issue
Block a user