devadutta.net

Happy New Year!

Wish you a very happy and prosperous new year!

I was at my friend’s place yesterday for new year celebrations and we needed a random number generator to play bingo. Instead of writing numbers on chits and picking them up, I hacked together a random number generator using Javascript in about 15 minutes, which looked like this:

bingobaby

I used a simple hash to see that numbers did not repeat and It actually worked pretty well.  I was delighted at Javascript’s utility at non geek parties!

Here is the code:



	




-1

And here is a demo

Enjoy 2009!

 
Director ge 'action'n a?