Skip to content

Instantly share code, notes, and snippets.

@trsqxyz
Created October 29, 2015 05:11
Show Gist options
  • Save trsqxyz/dbd98d9c2d83d3b8fad3 to your computer and use it in GitHub Desktop.
Save trsqxyz/dbd98d9c2d83d3b8fad3 to your computer and use it in GitHub Desktop.
import random
from mynumber import MyNumber
M = MyNumber()
mng = lambda x: int(''.join([str(random.randint(0,9)) for _ in range(x)]))
mns = set()
while len(mns) < 10:
mn = mng(12)
try:
if M.validate(mn):
mns.add(mn)
except ValueError:
pass
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment