Code to Generate random Name (10 character) and Credit Card (16 digits)
Code to Generate random Name (10 character) and Credit Card (16 digits) and Save them to a .csv file along with Last_four digits of credit card Under Vuser_init.c Add the function random_ vuser_init () { return 0 ; } char buff[ 32 ] = "" ; random_name ( int length) { int r,i; srand (( unsigned int ) time ( 0 )); //Seed number for rand() r = rand () % 25 + 65 ; //uppercase for Initial Letter buff[ 0 ] = ( char )r; //Loop to generate random small characters for (i = 1 ; i < length; i++) { // A-Z = 65-90 && a-z = 97-122 r = rand () % 26 + 97 ; //lowercase buff[i] = ( char )r; } return 0 ; } Code which goes into Action() Action () { int i; char *file1 = "C:\\temp\\sample.csv" ; long filename1; unsigned long num; char randnum1[ 10 ], randnum2[ 20 ]; char name[ 20 ]; const char *last_four; srand ( time (NULL)); filename1=