The code for magic8.py uses the python random library without importing it. This causes issues during runtime.