EDITABLE CODE:
LiveDemo: JavaScript Demo
Note: The demo above is used to generate random number(decimal) and then multiply them by 10.