Any C/C++ programmers? Need code for a random() function.

All forums need a place for all the posts for people in the community to rant about things not relating to what the forum is about. This is that forum.

Moderator: MacroQuest Developers

notadruid
a ghoul
a ghoul
Posts: 143
Joined: Mon Dec 08, 2003 6:02 pm

Any C/C++ programmers? Need code for a random() function.

Post by notadruid » Sun Apr 04, 2004 8:32 pm

I lost my instructional book and haven't had much luck on the web ... anyone have the code for a self-seeding random() that would be something like...

int random(int min,int max)

...which would return a random integer with the given minimum and maximum values?

User avatar
dont_know_at_all
Developer
Developer
Posts: 5450
Joined: Sun Dec 01, 2002 4:15 am
Location: Florida, USA
Contact:

Post by dont_know_at_all » Mon Apr 05, 2004 4:37 am

I'm sorry that google doesn't work for you.