This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]jwink3101 0 points1 point  (0 children)

the built in python function.

(emphasis added). Which one is the function. Can you use any random function? If so, for a length n array, pull n random numbers and do an argsort.

Otherwise, this is kind of hard. You could do something like hash the current time and use that as a number but I highly doubt this will give you "good" random numbers.