1
0
mirror of https://github.com/oliverbooth/X10D synced 2024-11-10 03:05:42 +00:00

(#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

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);