OFFSET
1,1
COMMENTS
This is a "subtract with carry" generator and is used to define the ranlux48 (A221562) generator.
LINKS
Eric M. Schmidt, Table of n, a(n) for n = 1..1000
George Marsaglia and Arif Zaman, A New Class of Random Number Generators, Annals of Applied Probability, Volume 1, Number 3 (1991), 462-480.
PROG
(C++)
#include <iostream>
#include <random>
void A221560(int max)
{
std::ranlux48_base gen;
for (int i = 1; i <= max; ++i)
std::cout << i << ' ' << gen() << '\n';
}
CROSSREFS
KEYWORD
nonn
AUTHOR
Eric M. Schmidt, Jan 20 2013
STATUS
approved