First sort

It's better to make
import random

and use random.randrange() in the code.