(#14) Import System to avoid Random FQN

This commit is contained in:
Oliver Booth 2021-07-20 17:12:28 +01:00
parent 9a26031245
commit 35a9b31be7
No known key found for this signature in database
GPG Key ID: A4AC17007530E9B4
1 changed files with 2 additions and 1 deletions

View File

@ -1,3 +1,4 @@
using System;
using System.Collections.Generic;
using System.Linq;
@ -14,7 +15,7 @@ namespace X10D
/// <typeparam name="T">The element type.</typeparam>
/// <param name="source">The <see cref="IEnumerable{T}" /> to shuffle.</param>
/// <param name="random">Optional. The <see cref="System.Random" /> instance to use for the shuffling.</param>
public static IReadOnlyCollection<T> Shuffled<T>(this IEnumerable<T> source, System.Random? random = null)
public static IReadOnlyCollection<T> Shuffled<T>(this IEnumerable<T> source, Random? random = null)
{
var list = new List<T>(source);
list.Shuffle(random);