Created
October 29, 2015 05:11
-
-
Save trsqxyz/dbd98d9c2d83d3b8fad3 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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