What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » Plug-Ins » Random number generator?

Random number generator?
Author: Message:
dotNorma
Veteran Member
*****

Avatar

Posts: 1745
Reputation: 17
32 / Male / –
Joined: May 2003
RE: Random number generator?
Its all over google in any language :-/

code:
In Form_Load()
Randomize
End Sub

Public Function Rand(ByVal Low As Long, _
                     ByVal High As Long) As Long
  Rand = Int((High - Low + 1) * Rnd) + Low
End Function


(Visual Basics)

code:
include <cstdlib>
#include <iostream>

using namespace std;

int main()
{
    int random_integer = rand();
    cout << random_integer << endl;
}

   random_integer = (rand()%10);

(C++)


Notice the VB one makes sense while the C++ one just seems like a bunch of random jabber :p

This post was edited on 07-23-2004 at 05:09 PM by dotNorma.
07-23-2004 05:08 PM
Profile PM Web Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
Random number generator? - by Phrive on 07-23-2004 at 01:40 PM
RE: Random number generator? - by KeyStorm on 07-23-2004 at 01:43 PM
RE: Random number generator? - by Phrive on 07-23-2004 at 01:44 PM
RE: Random number generator? - by Millenium_edition on 07-23-2004 at 01:44 PM
RE: Random number generator? - by KeyStorm on 07-23-2004 at 01:50 PM
RE: RE: Random number generator? - by LunarCrisis on 09-06-2004 at 04:41 AM
RE: Random number generator? - by Phrive on 07-23-2004 at 01:52 PM
RE: Random number generator? - by matty on 07-23-2004 at 02:18 PM
RE: Random number generator? - by Phrive on 07-23-2004 at 02:19 PM
RE: Random number generator? - by dotNorma on 07-23-2004 at 05:08 PM
RE: Random number generator? - by RaceProUK on 07-24-2004 at 09:37 AM
RE: Random number generator? - by CookieRevised on 09-06-2004 at 01:05 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