I got most of the way through Ritley. I incorporated a lot of the Movie t...

...ask into Ritley. 
You might want to consider adding validation to your code attribute. Your random generator looks pretty solid, but its possible that with thousands of users, that the same random number gets generated twice, and then you might find that the new values override the old values.