Method and apparatus for generating random numbers in computer system
Patent Information
- Authority / Receiving Office
- CN · China
- Current Assignee / Owner
- ALIBABA GRP HLDG LTD
- Publication Date
- 2017-07-04
Smart Images

Figure 1 
Figure 2 
Figure 3
Abstract
Description
technical field
[0001] The present application relates to the field of computer technology, in particular to a method and device for generating random numbers in a computer system. Background technique
[0002] In the traditional technology, when generating a specified number of random numbers, the random number of the specified number is often generated randomly by calling a random function. However, because the above random numbers are randomly generated, it cannot be effectively controlled (such as , controlled within a certain range), which will lead to the problem of uneven distribution of the specified number of random numbers generated. For example, in the scenario of realizing the sending of "red envelopes", the "red envelope amount" randomly generated by the payment server may be very large or very small (for example, 0.01), which will bring poor user experience. Contents of the invention
[0003] This application describes a method and device for generating rand...