Fixed bugs in random_OMS in cases where there are only two and three torsion generators