🚚 Move RandomExtensions to child namespace

Item for #7
This commit is contained in:
Oliver Booth 2021-01-18 17:00:40 +00:00
parent 28f46ecc8d
commit 31e4574732
2 changed files with 4 additions and 3 deletions

View File

@ -1,5 +1,6 @@
using System;
using System.Collections.Generic;
using X10D.RandomExtensions;
namespace X10D.ListExtensions
{
@ -33,7 +34,7 @@ namespace X10D.ListExtensions
throw new ArgumentNullException(nameof(source));
}
random ??= RandomExtensions.Random;
random ??= RandomExtensions.RandomExtensions.Random;
return random.NextFrom(source);
}
@ -50,7 +51,7 @@ namespace X10D.ListExtensions
throw new ArgumentNullException(nameof(source));
}
random ??= RandomExtensions.Random;
random ??= RandomExtensions.RandomExtensions.Random;
var count = source.Count;
while (count > 0)

View File

@ -2,7 +2,7 @@
using System.Collections.Generic;
using System.Linq;
namespace X10D
namespace X10D.RandomExtensions
{
/// <summary>
/// Extension methods for <see cref="Random" />.