Hello again

I'm generating a random number between 0 and 9
I want to assign that number to a character so I can store it in a character array;

something like
if i = 3
c = '3';

if i =4
c = '4'

but smarter way