Abstract
Conversion of unsigned 32-bit random integers to double precision floating point is discussed. It is shown that the standard practice can be unnecessarily slow and inflexible. It is argued that simulation experiments could benefit from making better use of the available precision.
- L'Ecuyer, P. 1996. Maximally equidistributed combined tausworthe generators. Math. Comput. 65, 203--213. Google Scholar
- Marsaglia, G. 2003a. Re: Good C random number generator. Posting, Usenet newsgroup sci.lang.c. 13-May-2003.Google Scholar
- Marsaglia, G. 2003b. Seeds for random number generators. Commun. ACM 46, 90--93. Google Scholar
- Marsaglia, G. and Tsang, W. W. 2004. The 64-bit universal RNG. Stat. Prob. Lett. 66, 183--187.Google Scholar
- Matsumoto, M. and Nishimura, T. 1998. Mersenne twister: A 623-dimensionally equidistributed uniform pseudorandom number generator. ACM Trans. Model. Comput. Simul. 8, 3--30. Google Scholar
- Panneton, F., L'Ecuyer, P., and Matsumoto, M. 2006. Improved long-period generators based on linear recurrences modulo 2. ACM Trans. Math. Soft. 32, 1--16. Google Scholar
- Press, W. H., Flannery, B. P., Teukolsky, S. A., and Vetterling, W. T. 1993. Numerical Recipes in C, 2nd ed. Cambridge University Press, New York.Google Scholar
Index Terms
- Conversion of high-period random numbers to floating point
Recommendations
Decimal Floating-Point Multiplication
Decimal multiplication is important in many commercial applications including financial analysis, banking, tax calculation, currency conversion, insurance, and accounting. This paper presents the design of two decimal floating-point multipliers: one ...
Fast decimal floating-point division
A new implementation for decimal floating-point (DFP) division is introduced. The algorithm is based on high-radix SRT division with the recurrence in a new decimal signed-digit format. Quotient digits are selected using comparison multiples, where the ...
Hardware Designs for Decimal Floating-Point Addition and Related Operations
Decimal arithmetic is often used in commercial, financial, and Internet-based applications. Due to the growing importance of decimal floating-point (DFP) arithmetic, the IEEE 754 Draft Standard for Floating-Point Arithmetic (IEEE P754) includes ...
Comments