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

    Fisher-Yates is one of the simplest
    things out there IMO
Just using "$n xor $something" would be simpler. I am just not sure yet, what a good "$something" is.


How does this guarantee the desired property of the output being a permutation?




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

Search: