Implemented qmrandom into modules