How to Solve NameError: name 'Random' is not defined -- Crypto

Solution: Import the 'Random' module

To Solve the error, add the following line to the top of your code.

from Crypto import Random

 

For more information:
Python Crypto Random