To install randcodeJS, type in your shell:
npm install -g randcodejs
randcodejs Yourfilename.js numberoffunctionsyouwant
So for example, the command
randcodejs homework.js 10 will write a js file with 10 functions in it.