Given an array of integers create a function to shuffle the numbers in a random way. Thus, given the same input a different shuffled result should be possible. For bonus points solve this problem without using extra space.
Given an array of integers create a function to shuffle the numbers in a random way. Thus, given the same input a different shuffled result should be possible. For bonus points solve this problem without using extra space.
Permalink: http://problemotd.com/problem/Array-shuffle/
Content curated by @MaxBurstein
Comments:
Anonymous - 10 years, 1 month ago
C# implementation using generics:
reply permalink