Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
joechapman
on Jan 24, 2012
|
parent
|
context
|
favorite
| on:
Show HN: A visual explanation of Fisher–Yates shuf...
In your last example you could do; [array[m], array[i]] = [array[i], array[m]]
And forget about t entirely.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search:
And forget about t entirely.