import random
minecraftmake55 (5)

how do i use import random for just strain lines of code and not for the hole thing

You are viewing a single comment. View All
Bergreen (10)

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, write import random at the top, and move your property class definition into that file.