If you only want to use the
random library for certain sections of your code, then you should move that code into a separate python file, with the
import random statement at the top.
For example, if you need to use the
random library in your
property class, you could make a new python file called Property.py, write
import random at the top, and move your property class definition into that file.