OCR GCSE (9-1) Computer Science J277 Guide to …

As the radom generator is method within a pre-defined class, we have to create an instance of this method first. Next we can assign a random number to a variable, using the name of the instance we have created (here it is randomGenerator), the .Next() call and then a range (shown in the brackets. ................
................