Method and apparatus for generating random sequences, and device and medium thereof
AssigneesBeijing BOE Technology Development Co., Ltd., Boe Technology Group Co., Ltd.
InventorXiangye Wei
Life of this patent
Estimating the term…
Abstract
Provided is a method for generating random sequences. The method is applicable to generating a random sequence using a plurality of state machines, any state machine of which is configured to generate an output value. The method includes: selecting, in accordance with a first rule, a state machine from the state machines successively to output a value according to history output values of at least a portion of the state machines; acquiring an output value of each of the state machines; and forming a random sequence from the output values of the state machines according to an output order of the state machines.
Claims17
A method for generating random sequences, applicable to generate a random sequences using a plurality of state machines, wherein any state machine of the state machines is configured to generate an output value;
- the method comprising:
- selecting, in accordance with a first rule, a state machine from the state machines successively to output an output value according to history output values of at least a portion of the state machines;
- acquiring the output value of each of the state machines;
- and
- forming a random sequence from the output values of the state machines according to an output order of the state machines;
- and
- wherein
- a serial number is assigned to each of the state machines, the serial numbers of the state machines being integer and continuous values;
- the first rule is configured to calculate an indicator value of a second state machine according to an indicator value of a first state machine and an output value of the first state machine, the second state machine being a next one of the state machines which outputs a value following the first state machine;
- and
- selecting, in accordance with the first rule, the state machine from the state machines successively to output the output value according to the history output values of the at least a portion of the state machines comprises:
- calculating the indicator value of the second state machine using the first rule based on the indicator value of the first state machine and the output value of the first state machine;
- determining a serial number of the second state machine based on the indicator value of the second state machine;
- and
- controlling the second state machine to output the output value according to the serial number of the second state machine.
Dependencies are inferred from the claim text.