Random integers

I'm making some kind of card game as a project and I need some way to make a random integer so I can set the suit and face for the cards.

I'm not asking for a code handout because I do need to know how it works, but I would really appreciate it if someone would point me in the right direction.

Thanks
(If you dont have the time to read to whole topic:)

use rand() (wich generate a number between 0 and someting really big) and then use %51+1
Make sure to use srand() to seed the generator.
Topic archived. No new replies allowed.