l = [1, 2, 3, 4, 5, 6, 7, 8, 9]
randomLst = randomNotPrevious(l)
next(randomLst)
next(randomLst)
next(randomLst)
next(randomLst)
next(randomLst)
How do I select a random integer from list, different from previous?