Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
The Fisher–Yates shuffle array extension method
using System; using System.Collections.Generic; using System.Linq; using System.Text.RegularExpressions; namespace Rextester { public class Program { public static void Main(string[] args) { var randomDigits = Enumerable.Range(0, 10).ToArray().Shuffle(); Console.WriteLine(string.Join(" ", randomDigits)); } } public static class ArrayExtensions { private static Random random = new Random(); public static T[] Shuffle<T>(this T[] array) { int n = array.Length; for (int i = 0; i < n; i++) { int r = i + random.Next(n - i); T t = array[r]; array[r] = array[i]; array[i] = t; } return array; } } }
run
|
edit
|
history
|
help
0
Found many section of times intersect.
enigma 2
Armstrong
123
Find 20 business days prior to today's date c#
C# programming exercise 2
MyUDA03Code0419-1176.cs
de Decimal a Binario
Code
hackton