Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

With Knuth-Shuffle, it would be: for i in reversed(range(1, len(x))): That makes it better, but not much.


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: