Benchmark of the Unrolling of Pseudorandom Numbers Generators

نویسندگان

  • David R.C. Hill
  • Alexandre Roche
چکیده

Research software involving stochastic behaviour often requires an enormous quantity of random numbers. In addition to the quality of the pseudorandom number generator (PRNG), the speed of the algorithm and the ease of its implementation are common practical aspects. In this work we will discuss how to optimize the access speed to random numbers independently from the generation algorithm using a lookup table. This idea was exploited in the late fifties, when the Rand Corporation started to propose sets of ready to use pseudo-random numbers (PRNs). The need of larger and larger sets of PRNs cancelled the possibility of storing those sets into the memory of our past computers, even supercomputers were not able to store tables with hundreds of millions of PRNs. In this paper we propose an implementation technique in order to speedup any kind of PRNG taking into account the capacities of current computers and microcomputers. The speed of our solution stems from the classical unrolling optimization technique, it is named the URNG technique (Unrolled Random Number Generator). Random numbers are first generated in source code, then precompiled and stored inside the RAM of inexpensive computers at the executable loading time. With this technique random numbers need to be computed only once. The UNRG technique is compliant with parallel computing. Limits and effects on speed and sensitivity are explored over 4 computer generations with a simple Monte Carlo simulation. Every research field using stochastic computation can be concerned by this software optimization technique.

برای دانلود رایگان متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

منابع مشابه

Optimization of Quasi Random Number Generators

Monte Carlo simulations are based on Random Number Generators (RNG). Drawing random numbers often constitutes a considerable part of simulation time. Unrolling random numbers is a way to accelerate Monte Carlo simulations appreciably by speeding up any RNG. This method consists in a pre-generation and storage of random numbers in an array of values. This array is either directly included in the...

متن کامل

Pseudorandom Number Generation by Inversive Methods

The classical linear congruential method for generating uniform pseudorandom numbers has some deficiencies that can render them useless for some simulation problems. This fact motivated the design and analysis of nonlinear congruential methods for the generation of pseudorandom numbers. Inversive methods are an interesting and very promising approach to produce uniform pseudorandom numbers. We ...

متن کامل

Some Methods of Parallel Pseudorandom Number Generation

We detail several methods used in the production of pseudorandom numbers for scalable systems. We will focus on methods based on parameterization, meaning that we will not consider splitting methods. We describe parameterized versions of the following pseudorandom number generation: 1. linear congruential generators 2. linear matrix generators 3. shift-register generators 4. lagged-Fibonacci ge...

متن کامل

Low Power Bist Implementation of Test Pattern Generation Based on Accumulator

The hardware overhead and fault coverage of a circuit is an important problem in integrated circuits and systems. To overcome this problem pseudorandom built-in-self-test (BIST) generators have been widely utilized to test integrated circuits and systems. A Pseudorandom pattern generator (PRPG) is used for generating test patterns (TPG). A weighted Pseudorandom built-in-self-test (BIST) schemes...

متن کامل

Faster Quasi Random Number Generator for Most Monte Carlo Simulations

Generating quasi-random sequences for Monte Carlo simulations has been proved of interest when comparing results with numbers coming from conventional pseudorandom sequences. Despite a fair amount of sound theoretical work on random number generation algorithms, theoretical gain is often eradicated by poor computer implementations. Recently, one of the authors of this paper showed that massive ...

متن کامل

ذخیره در منابع من


  با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید

عنوان ژورنال:

دوره   شماره 

صفحات  -

تاریخ انتشار 2002