# Breaking a Mersenne-twister RNG with unsequential outputs

Pardon me for this newbie-ish question. I'm still a novice in cryptography . I have an application that outputs random numbers from 0 - 12 (endpoints inclusive) unsequentially (some outputs are thrown off) using the mersenne twister algorithm and i would like to break and predict its seed in Python but i don't know what to program?

Once again please pardon my little knowledge in this space.

• Are you taking the twister outputs modulo 13? – Adrian Self Jun 16 at 3:51
• Or if you don't know implementation, what method call are you making in python? – Adrian Self Jun 17 at 15:14
• i use random.randint(0, 12) – Ozichukwu Jun 21 at 11:49