Kattuttala

Kattuttala is the identification number for cartoon or game characters and was created by JoiKinFan5. It includes the age, random number, gender, PCL and check digit.

Format
The format is:

A1A2A3R1R2R3R4GP1P2C

Where: 0XX in the first three digits denotes the age is unconfirmed or unknown.
 * A = Age
 * R = Random
 * G = Gender
 * P = PCL
 * C = Check digit

For a gender, an odd number or A is a male, and an even number or X is a female.

To generate a check digit: C = ((A1*3)+(A2*2)+(A3*1)+(R1*9)+(R2*8)+(R3*7)+(R4*6)+(G*5)+(P1*4)+(P1*3) mod 12) For random, it has values 0 to 9, X and A. If there is X or A in a place outside check digit, then it has to be 10 and 11 respectively.

For example, validate 032A01AX024: The result, 8 is greater than the last digit of this number, which is 4, so this Kattatula number is invalid and is not allowed be used.
 * Multiply the digits by weights and add all together: 0+6+2+99+0+7+66+50+0+6 = 236
 * Get the last digit of the result: 236 ÷ 12 = 19.66666666666666667
 * Round to the nearest one: 19.66666666666666667 = 20
 * Subtract 20 from 12: 20 - 12 = 8

Now, validate 0106XX23X40, 0106XX23X41, 0106XX23X42, 0106XX23X43, 0106XX23X44, 0106XX23X45, 0106XX23X46, 0106XX23X47, 0106XX23X48, 0106XX23X49, 0106XX23X4X and 0106XX23X4A: The result is 9, so those Kattatula numbers above are all invalid except 0106XX23X49 which has the correct check digit.
 * Multiply the digits by weights and add all together: 0+2+0+54+80+70+12+15+40+12 = 285
 * Get the last digit of the result: 285 ÷ 12 = 23.75
 * Round to the nearest one: 23.75 = 23
 * Subtract 24 from 15: 24 - 15 = 9

Example

 * Shantae: 0163920609X (age: about 16, gender: female, 6)
 * Isabel: 01639A94059 (age: about 16, gender: female, 4)
 * Risky Boots: 0XX030323A7 (age: unconfirmed, gender: female, 2)
 * Abby Cadabby: 00495914037 (age: 4, female, 4)