randomizer-portugal-numbers
Reactive icon

Randomizer Portugal Numbers

Stable version 1.0.0 (Compatible with OutSystems 11)
Uploaded
 on 2 Apr (yesterday)
 by 
0.0
 (0 ratings)
randomizer-portugal-numbers

Randomizer Portugal Numbers

Details
Randomizer Portugal Numbers is a specialized utility application designed to generate realistic, rule-compliant synthetic data tailored specifically to the Portuguese context. The app serves as a powerful tool for developers, testers, and data analysts who need high-fidelity mock data that passes standard validation algorithms.
Read more

Official Identifiers (Legal & Gov)

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.

  • GetRandomBI: Generates an old-format Identity Card number (8 digits + 1 control digit). Essential for testing legacy systems that still use the BI format.

  • GetRandomUtente: Generates a valid National Health Service (SNS) Number, typically starting with the digit "1" and following the official mathematical validation rules.

Financial & Contacts

  • 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.

  • GetRandomMobile: Generates a 9-digit Mobile Phone Number using real Portuguese national prefixes (91, 92, 93, 96).

Personal Identity Data

  • 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.

  • 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.

Custom Logic (User Defined)

  • GetRandomCustomRange: Generates a random integer between a specific Minimum (X) and Maximum (Y) value defined by the user.

  • GetWeightedBoolean: Generates a True or False (Boolean) value based on a user-defined probability.

    • Example: You can configure the function to return "True" 80% of the time for specific test scenarios.

Release notes (1.0.0)
License (1.0.0)
Reviews (0)
Team
Other assets in this category