Buggy random generator