Add random number snippet for JS.