Method and system for generating random numbers

A technology for generating a system and a random number generator, applied in the field of random numbers, can solve the problems of low randomness and high cost, and achieve the effect of reducing cost, reducing overhead and cost, and achieving good randomness effect.

Inactive Publication Date: 2016-06-01
天津市瑞趣科技合伙企业(有限合伙)
View PDF5 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] In view of the technical problems of low randomness and high cost in the random number generation method in the prior art, a random number generation method is provided

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

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0015] In order to make the object, technical solution and advantages of the present invention clearer, the present invention will be further described in detail below in conjunction with specific embodiments. It should be understood that the specific embodiments described here are only used to explain the present invention, not to limit the present invention.

[0016] The invention discloses a random number generation method, which specifically includes the following steps: 1. Input the sequence S to be processed, and the base of the elements in the sequence S is X; 2. Generate X-1 (0 , 1] and then these numbers are composed into a sequence R, and a sequence L of length X is obtained according to the sequence R (L 0, L 1 ,...,L X-1 ), where L is a random arrangement of numbers 0 to X-1; 3. Authorize numbers 0 to X-1 according to the sequence L, L 0 Authorization weight is 0, L 1 The weight of authorization is 1, ..., and so on, L X-1 The authorized weight is X-1; 4. The ...

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 relates to the technical field of random numbers and discloses a random number generation method comprising the following specific steps of: 1, inputting a to-be-processed number sequence S, wherein the scale of elements in the number sequence is X; 2, generating (X-1) random numbers within a range of (0,1] by virtue of a random number generator, then forming a number sequence R by utilizing the random numbers, and calculating according to the number sequence R to obtain a number sequence L (L0, L1,..., L(X-1)) with the length of X, wherein L is random arrangement of numbers ranging from o to (X-1); 3, authorizing the numbers ranging from 0 to (X-1) according to the number sequence L, wherein the authorized weight of the L0 is 0, the authorized weight of the L1 is 1,..., and the authorized weight of the L(X-1) is (X-1); and 4, sequencing the elements in the number sequence S according to the weights so as to obtain the random sequencing result SR of the number sequence S, so that the random numbers in the number sequence S are obtained. The invention further discloses a random number generation system. By utilizing the method disclosed by the invention, time is saved, the cost is lowered, and the system expenditure can also be lowered; and meanwhile, the random number generation process can also be reproduced, so that the real randomness of the random number generation is ensured, and the random effect is better.

Description

technical field [0001] The present invention relates to the technical field of random numbers, in particular to a method and system for generating random numbers. Background technique [0002] Random numbers are widely used in computer software, hardware, information security, lottery systems, etc., so how to obtain random numbers with high randomness is very important. [0003] In the prior art, random numbers are usually obtained in the following two ways. First, the system software is implemented. The random numbers generated by the pure software system are random numbers calculated by various algorithms, which are usually called pseudo-random numbers. At present, in order to obtain high-quality pseudo-random numbers, the algorithm is constantly improved. For example, the hyperbolic square algorithm adopted in the CN102520908A patent application obtains pseudo-random numbers. This method is not random enough on the one hand and on the other. On the one hand, the amount ...

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
Patent Type & Authority Patents(China)
IPC IPC(8): G06F7/58
Inventor 杜海洋
Owner 天津市瑞趣科技合伙企业(有限合伙)
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