Supposedly bug fixes.

Yep, meow
I think it was because you didn't define the Random in the listener class.