Demos of few algorithms, using randomness, in JavaScript