This is the source blend file for an interactive web application which demonstrates the possibilities of the "Random" node. The node randomly plays one of 8 animatios on button click. There are two .blend files, they are connected by relative paths. You can easily export the scene from coin_flip.blend to single HTML file!
Everything was done without coding. Enjoy!