Compute Random Permutation
Compute Random Permutation Problem Statement Design an Algorithm that creates a uniform permutation from (0 – n-1). Given a random number generator that return a number (0 – n-1 ) with equal probability. Use as few call to it as possible. Problem Solving Immediately I thought about the shuffle algorithm. However here we are provided […]