Monday, July 23, 2018

#1 2003-04-29 12:16:26 pm

Trash Man
Sanitation Department
Registered: 2005-10-20
Posts: 5336

generate random UE-NIF

This handler return a random UE "Número de Identificación Fiscal" and is easily adaptable to create a UE-NIF validation routine.

OS version: Any

Applescript:

generateRandomNIF_UE()

on generateRandomNIF_UE()
   set letras to "TRWAGMYFPDXBNJZSQVHLCKET"
   set thenum to random number from 1 to 9999999
   set theindex to (thenum mod 23) + 1
   "X" & thenum & letras's item theindex as string
end generateRandomNIF_UE


One mans trash is another mans treasure

Offline

 

Board footer

Powered by FluxBB

RSS (new topics) RSS (active topics)