Random number generator in C?

GotLove

Fledgling Freddie
Joined
Dec 25, 2003
Messages
8
I'm currently (trying) to program something in C but i need to generate a random number (between 1 - 20 idealy), I'm looking into in at the moment but is there a function to do this? or in fact any other way you may know of. Thanks

Edit: I should have said I've only done a term an a bit of C and im still getting to grips with bits of that so the simpler the method the better.
 

GotLove

Fledgling Freddie
Joined
Dec 25, 2003
Messages
8
It's ok now, i found a way, it was really quite easy, one day I'll own a pony?
 

Chilly

Balls of steel
Joined
Dec 22, 2003
Messages
9,046
see? my mindless spam helped - im your cardboard programmer :D
 

Users who are viewing this thread

Top Bottom