Eric RyanPython Web Development Techdegree Student 20,516 Points
Can you be more specific about the challenge you are having? It seems like the comments in the random.js file are appropriate. You could place the relevant code under each comment and it would be very readable.
If you mean that you are having a hard time writing comments to describe your code you might consider writing the comment first and then writing the code to do what the comment describes.
If you can give more detail about the challenge that you are experiencing we might be able to provide more relevant advice.