3 ms·
You can also do: for(i=0; i<100; i++) { play(Math.floor(Math.random()*3)) } Right in the JavaScript console.
by mbrumlow 7y ago
You can also do:
for(i=0; i<100; i++) { play(Math.floor(Math.random()*3)) }
Right in the JavaScript console.
- kojackst 7y agoNice! Thanks, I've edited my post to use this shorter version. The sleep is needed to avoid freezing the tab.