Fix for issue#30 - Improve initialization of randomizer

Because it is independent of the id, the randomizer can be initialized
outside of "onCreate" method. This is less error-prone.