Last chance! 50% off unlimited learning
Sale ends in
Returns a function that generates random permutations of length N. Can be used to generate individual solutions for permutation problems, e.g., Travelling Salesperson Problem
solutionFunctionGeneratorPermutation(N)
returns a function, without any arguments
length of the permutations returned
fun <- solutionFunctionGeneratorPermutation(10)
fun()
fun()
fun()
Run the code above in your browser using DataLab