Random 1 - 6 into a char array.

I know this might sounds weird and it can be DONE EASILY using int array. However i would like to try on char array. I tried and it print alot of funny characters. Erm, if there is any way possible to print only a random number from 1-6 into a char array, please tell me. Thanks in advance !
You mean something like '1'+rand()%6?
yeah it works. Thanks.
Topic archived. No new replies allowed.