generate random characters in c

Posted by Nick on Stack Overflow See other posts from Stack Overflow or by Nick
Published on 2013-11-01T09:51:06Z Indexed on 2013/11/01 9:53 UTC
Read the original article Hit count: 117

Filed under:
|
|

I'm new to programming in C and have been given the task of creating a 2D array that stores random letters from A-Z using the random () function. I know how to do random numbers.

nextvalue = random ( ) % 10001;

but am unsure on how exactly to create a random character. I know that you can use ASCII to create a random character using the range 65 - 90 in the ASCII table. Can anyone help me come up with a solution? I would greatly appreciate it.

© Stack Overflow or respective owner

Related posts about c

    Related posts about random