Set random density array in MC_Exercise.py