Y
Hacker News
new
|
ask
|
show
|
jobs
by
mbrumlow
2523 days ago
You can also do:
for(i=0; i<100; i++) { play(Math.floor(Math.random()*3)) }
Right in the JavaScript console.
1 comments
kojackst
2523 days ago
Nice! Thanks, I've edited my post to use this shorter version. The sleep is needed to avoid freezing the tab.
link