@@ -0,0 +1,1138 @@
+# -*- coding: utf-8 -*-%0A%0Aimport random as sys_random%0A%0Alocation_ = %7B%0A    %22A%22: %2210%22,%0A    %22B%22: %2211%22,%0A    %22C%22: %2212%22,%0A    %22D%22: %2213%22,%0A    %22E%22: %2214%22,%0A    %22F%22: %2215%22,%0A    %22G%22: %2216%22,%0A    %22H%22: %2217%22,%0A    %22I%22: %2234%22,%0A    %22J%22: %2218%22,%0A    %22K%22: %2219%22,%0A    %22M%22: %2221%22,%0A    %22N%22: %2222%22,%0A    %22O%22: %2235%22,%0A    %22P%22: %2223%22,%0A    %22Q%22: %2224%22,%0A    %22T%22: %2227%22,%0A    %22U%22: %2228%22,%0A    %22V%22: %2229%22,%0A    %22W%22: %2232%22,%0A    %22X%22: %2230%22,%0A    %22Z%22: %2233%22,%0A%7D%0A%0Agender_ = %7B%0A    %22male%22: %221%22,%0A    %22female%22: %222%22,%0A%7D%0A%0Adef random(location=None, gender=None):%0A    if location not in list(location_.keys()):%0A        location = sys_random.choice(list(location_.keys()))%0A    gender = gender_%5Bgender%5D if gender in list(gender_.keys()) else sys_random.choice(list(gender_.values()))%0A    third_to_ninth = %5Bsys_random.choice(range(0, 10)) for _ in range(3, 10)%5D%0A    sum_, weight = 0, %5B1, 9, 8, 7, 6, 5, 4, 3, 2, 1%5D%0A%0A    for i, j in enumerate(%5Bint(location_%5Blocation%5D%5B0%5D), int(location_%5Blocation%5D%5B1%5D), int(gender)%5D + third_to_ninth):%0A        sum_ += weight%5Bi%5D * j%0A        tenth = 10 - (sum_ %25 10) if (sum_ %25 10) %3E 0 else 0%0A%0A    return %22%22.join(%5Blocation, gender%5D + %5Bstr(x) for x in third_to_ninth%5D + %5Bstr(tenth)%5D)%0A%0A

Implement twid.generator.random()