These functions use real validation algorithms (Modulo 11) to ensure the generated numbers are mathematically valid.
GetRandomNIF: Generates a valid 9-digit Tax Identification Number (Contribuinte). It respects Portuguese prefixes (1, 2, 5) and calculates the required control digit.
GetRandomNIF
GetRandomBI: Generates an old-format Identity Card number (8 digits + 1 control digit). Essential for testing legacy systems that still use the BI format.
GetRandomBI
GetRandomUtente: Generates a valid National Health Service (SNS) Number, typically starting with the digit "1" and following the official mathematical validation rules.
GetRandomUtente
GetRandomNIB: Generates a 21-digit Bank Account Identifier. It implements the Modulo 97 algorithm, ensuring the last two check digits correctly correspond to the previous 19.
GetRandomNIB
GetRandomMobile: Generates a 9-digit Mobile Phone Number using real Portuguese national prefixes (91, 92, 93, 96).
GetRandomMobile
91
92
93
96
GetRandomName: Generates a realistic Full Name. It crosses a database of hundreds of first names (male/female) with over 550 Portuguese surnames, creating millions of possible unique combinations.
GetRandomName
GetRandomDOB: Generates a random Date of Birth (Date) within a user-defined age range (e.g., between 18 and 80 years old), perfect for testing age-based business logic.
GetRandomDOB
GetRandomCustomRange: Generates a random integer between a specific Minimum (X) and Maximum (Y) value defined by the user.
GetRandomCustomRange
GetWeightedBoolean: Generates a True or False (Boolean) value based on a user-defined probability.
GetWeightedBoolean
Example: You can configure the function to return "True" 80% of the time for specific test scenarios.