Implementation of random number generator class Random (based on RC4),
and initial implementation of the Mobile factory singleton class