#include <stdio.h>
#include <stdlib.h>
#include <time.h>
//this is a program to generate a random password
intmain(){intcounter=0;srand(time(NULL));charrandChar;intpasswordLength=20;// printf("Type in a password Length \n");
// scanf("%d", &passwordLength);
inti;for(i=0;i<10;i++){counter=0;while(counter<passwordLength){//seed random based on time
randChar="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789"[random()%62];printf("%c",randChar);counter++;}printf("\n");}printf("\n");return0;}