-
Jul 5th, 2008, 06:03 PM
#1
Thread Starter
New Member
Random Numbr Generator
How can I generate numbers with long long period (for example group of 10 numbers (1 to 100) will repeat after couple long time : 1 2 3 4 5 6 7 8 9 10 .... compute.... long period ... lot of numers (1 to 100) .... 1 2 3 4 5 6 7 8 9 10.... It means, I need R.N.D. with long repeating period. Is it possible in C++ ( Microsoft isual Studio 2005) ?
Thanksfor your response. By by!
-
Jul 5th, 2008, 06:22 PM
#2
Frenzied Member
Re: Random Numbr Generator
You may want to rephrase the question so those that speak English can understand it.
-
Jul 5th, 2008, 06:23 PM
#3
Frenzied Member
Re: Random Numbr Generator
This is the wrong place for it.
Should be here: http://www.vbforums.com/forumdisplay.php?f=9
-
Aug 12th, 2008, 03:57 PM
#4
New Member
Re: Random Numbr Generator
There was code but I forget it.
-
Aug 22nd, 2008, 07:20 AM
#5
Member
Re: Random Numbr Generator
Repeating period? PLZ rephrase question.
-
Mar 13th, 2009, 12:07 AM
#6
Banned
Re: Random Numbr Generator
rand(); is used to select the random number.
eg.
Code:
#include <cstdlib>
#include <ctime>
#include <iostream>
using namespace std;
int main()
{
srand((unsigned)time(0));
int random_integer = rand();
cout << random_integer << endl;
}
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|