Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Batch out-of-order random number generation method based on single-chip microcomputer

A technology of random numbers and single-chip microcomputers, which is applied in the field of batch random number generation, which can solve the problems of easy repetition, poor randomness, continuous data, etc., and achieve the effect of simple generation method, large difference and strong randomness

Inactive Publication Date: 2014-03-19
SINO WEALTH ELECTRONICS
View PDF8 Cites 12 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0002] The existing method of generating random numbers by single-chip microcomputer is prone to repetition, poor randomness, and requires a trigger source
And when batch generation, the data will appear continuous or easy to repeat and other shortcomings

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
  • Batch out-of-order random number generation method based on single-chip microcomputer
  • Batch out-of-order random number generation method based on single-chip microcomputer

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0020] The present invention will be further described below in conjunction with specific embodiment and accompanying drawing, set forth more details in the following description so as to fully understand the present invention, but the present invention can obviously be implemented in many other ways different from this description, Those skilled in the art can make similar promotions and deductions based on actual application situations without violating the connotation of the present invention, so the content of this specific embodiment should not limit the protection scope of the present invention.

[0021] figure 1 It is a schematic flowchart of a method for generating random numbers in batches based on a single-chip microcomputer according to an embodiment of the present invention. Such as figure 1 As shown, the batch random number generation method mainly includes the following process:

[0022] Step S101 is executed to create a random, non-repetitive, random data tabl...

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 provides a batch out-of-order random number generation method based on a single-chip microcomputer. The method includes the steps that a random and no-repetition out-of-order data table with the length of 256 bytes is established, adjacent data in the out-of-order data table are not continuous, data in the out-of-order data table do not repeat, and the data are out of order; according to the length of random numbers to be generated, the number of out-of-order data tables to be produced is determined; a plurality of data seeds are obtained through random access memory data of the single-chip microcomputer; when the random numbers are generated in batches, each byte of data are made to change through a pre-determined algorithm. The random number generation mode is high in randomness, the random numbers in batches are generated, the adjacent data are out of order, and confusion caused by similarity is not prone to occurrence. Besides, the random numbers in batches will not repeat, and the method is an ideal method for generating out-of-order random IDs in batches.

Description

technical field [0001] The invention relates to the technical field of single-chip microcomputers, in particular, the invention relates to a method for generating random numbers in batches based on single-chip microcomputers. Background technique [0002] The existing method for generating random numbers by a single-chip microcomputer is prone to repetition, poor randomness, and requires a trigger source. And when batch generation, data will appear continuous or easy to repeat and other shortcomings. Contents of the invention [0003] The technical problem to be solved by the present invention is to provide a method for generating random numbers in batches out of order based on a single-chip microcomputer. When generating random numbers in batches, it has the characteristics of random numbers, non-repetition, and no need for triggering. [0004] In order to solve the above-mentioned technical problems, the present invention provides a method for generating batch random nu...

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 Applications(China)
IPC IPC(8): G06F7/58
Inventor 汪正峰
Owner SINO WEALTH ELECTRONICS
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products