A method of generating random numbers

A technology of random numbers and random sequences, applied in the field of generating random numbers, it can solve the problems of deterioration of input interval representation accuracy, rounding errors, and inability to eliminate the rounding errors of output interval segmentation, so as to solve the quality degradation of output random numbers and alleviate rounding errors. The effect of the input error problem

Inactive Publication Date: 2019-03-08
ZHEJIANG GONGSHANG UNIVERSITY
View PDF0 Cites 1 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] 1. The rounding error problem of interval segmentation: division operation is required to divide the interval. In general, the division operation with limited precision will inevitably lead to rounding error
Improving the accuracy of operations is a common way to alleviate this problem, but it cannot eliminate it
[0004] 2. The problem that the input interval crosses the boundary of the output subinterval: During the operation of the interval algorithm, there will be situations where the input interval spans two adjacent output subintervals when the length is very small, so the sign of the next output cannot be determined, and the output interval cannot be valid As a result, the representation accuracy of the input ...

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • A method of generating random numbers
  • A method of generating random numbers
  • A method of generating random numbers

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0041] In order to make the purpose, technical solution and advantages of the present invention clearer, the implementation manners of the present invention will be further described in detail below.

[0042] The embodiment of the present invention provides a method for generating random numbers, see figure 1 . This method is used to convert a binary independent and identical distribution input sequence with a known probability distribution into a binary independent and identical distribution output sequence with a preset probability distribution. The method for generating random numbers includes the following parameters and steps:

[0043] parameter

[0044] co-prime positive integer a 0 and a 1 : represents the probability distribution of the binary independent and identically distributed input sequence

[0045]

[0046] co-prime positive integer b 0 and b 1 : represents the probability distribution of the binary independent and identically distributed output seque...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The invention discloses a method for generating a random number, belonging to the computer field. The method for generating the random number is an improved algorithm of the interval algorithm under the condition of finite precision integer operation, and the main improvements include an implicit partition method of the output interval and a renormalization method of three sub-intervals of the output interval. This method completely eliminates the rounding error problem of the interval division of the output of the interval algorithm, but also greatly alleviates the rounding error problem of input interval partition, so that the problem that the quality of the output random number of the interval algorithm decreases due to the finite precision operation is basically solved, and the input data of any given probability distribution is converted into the random number of any given probability distribution in an accurate or near-accurate manner under the condition of the finite precision integer operation.

Description

technical field [0001] The invention relates to the field of computers, in particular to a method for generating random numbers. Background technique [0002] Random numbers are widely used in fields such as computer simulation and information security. The quality of random numbers, that is, the statistical distance between the real distribution of random numbers and the target distribution, is an important indicator for evaluating random number generation methods. Under the condition that the statistical model of the information source is known, the Interval Algorithm proposed in [1] can not only generate high-quality random numbers, but also has the highest efficiency in generating random numbers among various known methods. However, the original interval algorithm is based on infinite-precision arithmetic operations. When using limited-precision arithmetic operations, especially limited-precision integer operations, there are the following problems: [0003] 1. The pro...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
IPC IPC(8): G06F7/58
CPCG06F7/588
Inventor 杨胜天陈慧霖
Owner ZHEJIANG GONGSHANG UNIVERSITY
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products