Mark,
The same is the case with C++, as I showed before on this forum. The standard is mt19937 and fpc - used to, not in trunk - conform to that. As does my implementation on the wiki.
#include <iostream>
#include <random> // for std::mt19937
int main() {
std::mt19937 mt; // Instantiate a 32-bit Mersenne Twister
// Print a bunch of random numbers
for (int count { 1 }; count <= 40; ++count) {
std::cout << mt() << '\t'; // generate a random number
// If we've printed 5 numbers, start a new row
if (count % 5 == 0)
std::cout << '\n';
}
return 0;
}
That code is probably not mine, I believe I posted a similar example but can't find it.
Given the same seed, this generates random values compatible to Freepascal <= 3.2.2.
For others, casual readers: this is important to share data between the two languages.
You are right about the quote
It is important.
Your quote is attributed to Robert Coveyou