Part of the assignment I'm working on is to display random letters between my good letters to encode text. Right now I can make it display random numbers. How can I change this to out put random letters?
#include <iostream>
#include <fstream>
#include <ctype.h>
#include <ctime>
#include <cstdlib>
#include "stdafx.h"
using namespace std;
int main ()
{
int i;
int array[10];
char words;
do
{
cin>>words;
{
for(i =0; i<5; i++)
{
array[i] = rand ()%9;
{
cout<<array[i];
}
}
cout.put(words);
}
} while (c != EOF) ;
return 0;
}