I was thinking that this was easy but .... ive changed my mind
heres what i got so far (after 5 mins) the only prob is that some letters arent there anylonger... u'l c
Code:
#include <stdio.h>
#include <time.h>
#include <stdlib.h>
#include <string.h>
int main(){
char woord[5]="HALLO",letter;
int lengte,i,ct;
time_t t;
lengte=strlen(woord);
srand((unsigned) time(&t));
printf("%s\n",woord);
for(i=0;i<lengte;i++){
ct=rand()%lengte;
letter=woord[ct];
printf("%c",letter);
}
return 0;
}
then u get as output something like
LAALH or OHHLO
so this way not all letters are being used in the mixed strings....
(and right now im going to sleep so ull have to figure the rest out urself ..)
::::edit::::
again sry bout the indentations but it seems that if i ctrl-c ctrl-v the whole thing it gets messed up