What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Skype & Technology » Tech Talk » [C help] how to...

[C help] how to...
Author: Message:
crank
Full Member
***

Avatar
Failed to come back here :(

Posts: 304
Reputation: 17
35 / Male / Flag
Joined: Mar 2004
Status: Away
O.P. RE: [C help] how to...
quote:
Originally posted by raceprouk
code:
int <result> = rand() % <out-of>;
The rand() function returns a number from 0 to MAX_INT (32,767 I think). By using the modulo division operator %, you can replace <out-of> with an integer e.g. use 10 to get a random number from 0-9 inclusive.

I know that I'm just wondering how to get it from the file...
I haven't been active here in ages.
If you're wondering who i am, read my reputations. I used to make plugins, skins and spam the IRC channels here back in the good old days before Windows Live.
06-11-2004 01:26 PM
Profile E-Mail PM Web Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
[C help] how to... - by crank on 06-10-2004 at 02:32 PM
RE: [C help] how to... - by RaceProUK on 06-11-2004 at 10:09 AM
RE: [C help] how to... - by crank on 06-11-2004 at 01:26 PM
RE: [C help] how to... - by RaceProUK on 06-11-2004 at 01:30 PM
RE: [C help] how to... - by crank on 06-11-2004 at 01:38 PM
RE: [C help] how to... - by RaceProUK on 06-11-2004 at 01:41 PM


Threaded Mode | Linear Mode
View a Printable Version
Send this Thread to a Friend
Subscribe | Add to Favorites
Rate This Thread:

Forum Jump:

Forum Rules:
You cannot post new threads
You cannot post replies
You cannot post attachments
You can edit your posts
HTML is Off
myCode is On
Smilies are On
[img] Code is On