摘要 |
PROBLEM TO BE SOLVED: To generate random numbers with long cycle at a low cost. SOLUTION: This random number generator is provided with a first sequence generating part to generate a sequence with a first cycle, a second sequence generating part to generate a sequence with a second cycle and an arithmetic part to apply a prescribed arithmetic operation to the first and second sequences. The first sequence generating part outputs random numbers read, for example, from a random number table. The second sequence generating part is allowed to be a counter output to increment in stepped or other complicated forms which are not the counter output other than a normal counter output. The arithmetic part generates uniform random numbers without deviation by applying XOR and XNOR, etc., to the first and second sequences. Since the generated random numbers have the greatest common divisor of the first and second cycles as the cycles, their cycles are easily prolonged. |