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.
how do i use import random for just strain lines of code and not for the hole thing
https://repl.it/@minecraftmake55/halo-monopoly
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 theimport random
statement at the top.For example, if you need to use the
random
library in yourproperty
class, you could make a new python file called Property.py, writeimport random
at the top, and move your property class definition into that file.