nextrand -> next; fix 0 as parameter
jshint