Random number generator and generation method of electronic coupon and dynamic payment code

A random number generator and dynamic payment technology, applied in random number generators, instruments, electrical digital data processing, etc., can solve the problems of insufficient use of numbers, low generation efficiency, and easy generation of the same random number.

Pending Publication Date: 2019-07-30
XUNFU INFORMATION TECH CO LTD
View PDF7 Cites 3 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] 1. Improper selection of random factors can easily generate the same random numbers;
[0005] 2. As the number of generated random numbers increases, the probability of repeated random numbers increases, and the generation efficiency decreases. The length of the number must be increased to improve usability;
[0006] Doesn't take full advantage of theoretically available numbers and is inefficient
For example, there are 1 million random numbers in theory for 6-digit numbers, but due to the above reasons, it is basically impossible to efficiently generate these 1 million different random numbers

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
  • Random number generator and generation method of electronic coupon and dynamic payment code
  • Random number generator and generation method of electronic coupon and dynamic payment code

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0018] The present invention will be further described below in conjunction with the accompanying drawings and embodiments.

[0019] figure 1 It is a schematic diagram of the random number acquisition process of the present invention.

[0020] See figure 1 , the random number acquisition process of the present invention is as follows:

[0021] Step 1: Generate an initial sorting array according to the specified bit length; features: 1) the value of the array is consistent with the array number, and is sorted from small to large; 2) contains all the numbers of the specified bit length;

[0022] Step 2: Randomly put the value into the random seed array according to the serial number; Features: 1) Use the random number algorithm to obtain the serial number, the value range of the random algorithm is from 0 to the number of array elements minus 1. 1; 2) Put the values ​​stored in the random serial number into the random seed array in order;

[0023] Step 3: Take values ​​from ...

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 random number generator and a generation method of an electronic coupon and dynamic payment code. The random number generator comprises: an initial sorting array generation module, wherein an initial sorting array comprises all numbers witha specified bit length, the value of the array is consistent with the sequence number of the array, and the values are sorted according to the size order; a random seed array generation module which is used for obtaining a serial number by using a random number algorithm, wherein the value range of the random algorithm is 0 to the number of array elements-1, and the number of the array elements is reduced by 1 every time one number is obtained, and the numerical values stored in the random serial numbers are put into a random seed array in sequence; and a random number acquisition module which is used for taking values from the random seed array in sequence, wherein the taken values are random numbers. According to the random number generator and the generation method of the electronic coupon and the dynamic payment code provided by the invention, all random numbers in a bit length range can be used, and the extracted random numbers are ensured not to be repeated.

Description

technical field [0001] The invention relates to a method for obtaining high-efficiency random numbers, in particular to a method for generating random number generators, electronic coupons and dynamic payment codes. Background technique [0002] In the field of payment, random numbers are widely used, such as: electronic coupon numbers, random passwords, etc. [0003] The method of obtaining conventional random numbers has the following pain points: [0004] 1. Improper selection of random factors can easily generate the same random numbers; [0005] 2. As the number of generated random numbers increases, the probability of repeated random numbers increases, and the generation efficiency decreases. The length of the number must be increased to improve usability; [0006] Doesn't take full advantage of the theoretically available numbers and is inefficient. For example, there are 1 million random numbers in 6-digit numbers theoretically, but due to the above reasons, it is...

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/58G06Q30/02
CPCG06F7/588G06Q30/0207
Inventor 陈其洪
Owner XUNFU INFORMATION TECH CO LTD
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