Generating random numbers in JavaScript is easy once you understand how the built-in function to do this works but a lot of developers tend to write repetitive code rather than creating their own random number function which can be re-used.
Most people new to JavaScript get confused about the different types of events when trying to listen to input value changes and are not sure what they all do.