JP2615743B2 - Random number generator - Google Patents
Random number generatorInfo
- Publication number
- JP2615743B2 JP2615743B2 JP63014870A JP1487088A JP2615743B2 JP 2615743 B2 JP2615743 B2 JP 2615743B2 JP 63014870 A JP63014870 A JP 63014870A JP 1487088 A JP1487088 A JP 1487088A JP 2615743 B2 JP2615743 B2 JP 2615743B2
- Authority
- JP
- Japan
- Prior art keywords
- random number
- value
- request signal
- output
- update request
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Expired - Lifetime
Links
Description
【発明の詳細な説明】 〔産業上の利用分野〕 本発明は、疑似的な乱数を発生させる乱数発生装置に
関するものである。Description: TECHNICAL FIELD The present invention relates to a random number generator for generating a pseudo random number.
時間間隔の異なったタイミングで様々なシステムを制
御したい場合、各々のシステム内部で乱数を発生させ、
この乱数を制御時間間隔として用いることによりシステ
ムを制御したい場合がある。このような場合に、下記の
ような乱数発生装置を用いていた。If you want to control various systems at different time intervals, generate random numbers inside each system,
In some cases, it is desired to control the system by using this random number as a control time interval. In such a case, the following random number generator has been used.
つまり、あらかじめ乱数表などから求められている正
規乱数や一様乱数などの一連の乱数列をメモリ手段によ
って記憶しておき、乱数要求信号が発生したときアドレ
スポインタによって示されるアドレスに存在する乱数を
出力するようにした乱数発生装置が広く知られている。In other words, a series of random numbers such as a normal random number or a uniform random number previously obtained from a random number table or the like is stored by the memory means, and when a random number request signal is generated, the random number existing at the address indicated by the address pointer is stored. 2. Description of the Related Art A random number generator for outputting a signal is widely known.
第3図は、この従来の乱数発生装置の一例を示したも
ので、アドレスポインタ3に乱数要求信号S1が入ると、
そのときのアドレスポインタ3の値が乱数テーブル2に
入力され、その値に対応したアドレスに存在する乱数の
値を、乱数5として出力するものである。Figure 3 is shows an example of a conventional random number generator, the random number request signals S 1 to the address pointer 3 enters,
The value of the address pointer 3 at that time is input to the random number table 2, and the value of the random number existing at the address corresponding to the value is output as the random number 5.
実際にシステム内部で乱数を発生される場合には、例
えばマイクロプロセッサ内のソフトウェアで実現させて
いた。When a random number is actually generated in the system, it is realized by software in a microprocessor, for example.
前記のように、乱数列を各システム毎に用意しておく
やり方は量産には向かないので実用的でなく、一方、乱
数列を1つのマイクロプロセッサ内に複数種存在させる
ことは、メモリ容量の増大につながるので、1種類の乱
数列を用いることが望ましい。As described above, the method of preparing a random number sequence for each system is not practical because it is not suitable for mass production. On the other hand, having a plurality of types of random number sequences in one microprocessor requires a large memory capacity. It is desirable to use one kind of random number sequence because it leads to an increase.
しかし、前記乱数発生装置は1つのシステムにもちい
られる場合は問題ないが、複数のシステムを制御する場
合、1種類の乱数列が使用している場合、各々のシステ
ムのアドレスポインタ3が一旦一致すると、発生される
乱数5も一致し、もはや各システムはランダムには制御
できなくなり、システムが正常に働かないといった問題
点があった。However, there is no problem when the random number generator is used for one system, but when controlling a plurality of systems, when one type of random number sequence is used, if the address pointers 3 of each system match once, , The generated random numbers 5 also match, and each system can no longer be controlled at random, causing a problem that the systems do not work properly.
そこで、本発明は上記問題点に鑑みてなしたものであ
って、その目的とするところは、複数のシステムにおい
て用いたときに、出力される各々の乱数が同じ値になる
ことのない乱数発生装置を提供することにある。Therefore, the present invention has been made in view of the above-described problems, and an object of the present invention is to generate a random number in which each output random number does not have the same value when used in a plurality of systems. It is to provide a device.
本発明は、あらかじめ乱数表や計算などによって得ら
れた一連の乱数を記憶させた乱数テーブルと、乱数要求
信号が発生したとき、前記乱数テーブルによって記憶さ
れた一連の乱数のアドレス値を出力するアドレスポイン
タとを含んでなる乱数発生装置において、一定時間間隔
でカウンタ値をインクリメントさせる自走カウンタと、
前記アドレスポインタの出力値を更新するための更新要
求信号を所定のタイミングで出力する更新要求信号発生
手段とを付加し、前記更新要求信号発生手段から更新要
求信号が出力されたとき、前記自走カウンタのカウンタ
値が前記アドレスポインタの出力値に置き換わるように
したことにより上記の目的を達成せんとするものであ
る。The present invention provides a random number table in which a random number table or a series of random numbers obtained in advance by calculation or the like is stored, and an address for outputting a series of random number address values stored by the random number table when a random number request signal is generated. A self-running counter that increments a counter value at fixed time intervals in a random number generator that includes a pointer;
Update request signal generating means for outputting an update request signal for updating the output value of the address pointer at a predetermined timing; and when the update request signal is output from the update request signal generating means, The object is achieved by replacing the counter value of the counter with the output value of the address pointer.
以下、本発明を一実施例として掲げた図面に基づき説
明する。Hereinafter, the present invention will be described with reference to the drawings given as one embodiment.
第1図は、本発明の一実施例を示すブロック図であ
る。FIG. 1 is a block diagram showing one embodiment of the present invention.
1は自走カウンタで、システム内に独自に計時するカ
ウンタであり、例えば一定時間間隔で値をインクリメン
トするマイクロプロセッサ内のタイマがこれにあたる。Reference numeral 1 denotes a self-running counter, which is a counter that independently measures time in the system, such as a timer in a microprocessor that increments a value at regular time intervals.
2は乱数テーブルで、乱数表などから求められている
正規乱数や一様乱数などの一連の乱数列が記憶されてお
り、ROM(Read Only Memory)などのメモリ手段からな
る。Reference numeral 2 denotes a random number table which stores a series of random number sequences such as a normal random number and a uniform random number obtained from a random number table or the like, and includes a memory means such as a ROM (Read Only Memory).
3はアドレスポインタで、乱数要求信号S1が入力され
たとき乱数テーブル2内のどの値を読み取るかのアドレ
スを指し示すメモリ手段であり、RMA(Random access M
emory)などが用いられる。3 is the address pointer, a memory means for pointing to one of the addresses read any value in the random number table 2 when the random number request signal S 1 is inputted, RMA (Random access M
emory) is used.
4は更新要求信号発生手段を構成する乱数出力回数カ
ウンタで、乱数テーブル2から出力された乱数5の出力
回数を数え、この出力回数が所定値に達すると更新要求
信号S2を出力するものである。この更新要求信号S2は、
後述のゲート回路6に入力される。4 is a random number output number counter constituting the update request signal generating means counts the number of output times of the random number 5 output from the random number table 2, and outputs an a update request signal S 2 output count reaches a predetermined value is there. This update request signal S 2
It is input to a gate circuit 6 described later.
6はゲート回路で、自走カウンタ1とアドレスポイン
タ3の間に介在し、自走カウンタ1の出力信号を、更新
要求信号S2が発生したときにだけアドレスポインタ3に
入力されるようにするためのものである。6 is a gate circuit, interposed between the free-running counter 1 and the address pointer 3, the output signal of the free-running counter 1, the update request signal S 2 is to be inputted only to the address pointer 3 upon the occurrence It is for.
次に、本実施例の動作について説明する。 Next, the operation of the present embodiment will be described.
アドレスポインタ3に乱数要求信号S1が入ると、アド
レスポインタ3からアドレス値が乱数テーブル2へ出力
され、このアドレス値に対応したアドレスに格納されて
いる乱数値を乱数5として出力する。アドレスポインタ
3は乱数5を出力した後にその値を更新する。更新の方
法としては、例えば、通常所定値だけインクリメントし
ていき、更新後の値が乱数テーブル2内のアドレス値を
示さない場合は初期値へ戻るように補正すればよい。When entering the random number request signals S 1 to the address pointer 3, output from the address pointer 3 address value to the random number table 2, and outputs the random number value stored in the address corresponding to the address value as a random number 5. The address pointer 3 updates its value after outputting the random number 5. As an updating method, for example, it is sufficient to normally increment the value by a predetermined value, and to return to the initial value when the updated value does not indicate an address value in the random number table 2.
乱数出力回数カウンタ4は、乱数テーブル2から乱数
5が出力される毎に、カウンタ値をインクリメントして
おく。このカウンタ値があらかじめ設定された値に達す
ると、更新要求信号S2をゲート回路6に出力し、ゲート
回路6はそのゲートを開くのである。The random number output number counter 4 increments the counter value every time the random number 5 is output from the random number table 2. When the counter value reaches the preset value, and outputs the update request signal S 2 to the gate circuit 6, the gate circuit 6 is to open the gate.
アドレスポインタ3の更新値は、更新要求信号S2が入
った時点の自走カウンタ1のカウンタ値に置き換わるの
である。もし、このときの自走カウンタ1のカウンタ値
が乱数テーブル2内のアドレス値を指し示さないような
場合は、アドレスポインタ3内で、例えば下位ビットだ
けを使用する等により適性なアドレス値になるように補
正を行う。Updated value of the address pointer 3 is the replacement for the counter value of the free-running counter 1 at the time when the update request signal S 2 enters. If the counter value of the free-running counter 1 at this time does not point to an address value in the random number table 2, an appropriate address value is obtained in the address pointer 3 by, for example, using only lower bits. Is corrected as follows.
第2図は、本発明の他の実施例を示すブロック図であ
る。FIG. 2 is a block diagram showing another embodiment of the present invention.
この実施例では、更新要求信号発生手段として、パル
ス発生手段7を用いたものである。パルス発生手段7の
具体例としては、一定時間間隔で出力されるタイマパル
スや、システムであらかじめ規定された条件を満足した
時に発生するトリガパルス等を用いればよい。In this embodiment, a pulse generator 7 is used as the update request signal generator. As a specific example of the pulse generating means 7, a timer pulse output at a fixed time interval, a trigger pulse generated when a condition predetermined in the system is satisfied, or the like may be used.
従来の、乱数テーブル2を順次読みにくいだけの乱数
発生装置の場合は、複数のシステムにおいて、一旦各々
のシステムのアドレスポインタ3が一致してしまうと、
各々のシステムの制御が他のシステムの制御と全く同期
することになるが、本発明では、いずれの実施例も、更
新要求信号S2によってアドレスポインタ3の値を更新す
るので、システムが一時的に同期しても、その後再びお
互いにランダムな関係で動作することができる。In the case of a conventional random number generating device in which it is difficult to sequentially read the random number table 2, in a plurality of systems, once the address pointers 3 of each system match,
Although the control of each system will be completely synchronized with the control of the other systems, in the present invention, any of the embodiments also, the update request signal S 2 so updates the value of the address pointer 3, the system is temporarily Can work again in a random relationship with each other.
本発明は、あらかじめ乱数表や計算などによって得ら
れた一連の乱数を記憶させた乱数テーブルと、乱数要求
信号が発生したとき、前記乱数テーブルによって記憶さ
れた一連の乱数のアドレス値を出力するアドレスポイン
タとを含んでなる乱数発生装置において、一定時間間隔
でカウンタ値をインクリメントさせる自走カウンタと、
前記アドレスポインタの出力値を更新するための更新要
求信号を所定のタイミングで出力する更新要求信号発生
手段とを付加し、前記更新要求信号発生手段から更新要
求信号が出力されたとき、前記自走カウンタのカウンタ
値が前記アドレスポインタの出力値に置き換わるように
したので、複数のシステムにおいて用いたときに、出力
される各々の乱数が同じ値になることのない乱数発生装
置が提供できた。The present invention is directed to a random number table in which a random number table or a series of random numbers obtained in advance by calculation or the like is stored. A self-running counter that increments a counter value at fixed time intervals in a random number generator that includes a pointer;
Update request signal generating means for outputting an update request signal for updating the output value of the address pointer at a predetermined timing; and when the update request signal is output from the update request signal generating means, Since the counter value of the counter is replaced by the output value of the address pointer, a random number generator can be provided in which each output random number does not have the same value when used in a plurality of systems.
第1図は、本発明の一実施例を示すブロック図、 第2図は、本発明の他の実施例を示すブロック図 第3図は、従来例を示すブロック図である。 1……自走カウンタ、2……乱数テーブル 3……アドレスポインタ 4……乱数出力回数カウンタ 5……乱数、6……ゲート回路。 FIG. 1 is a block diagram showing one embodiment of the present invention, FIG. 2 is a block diagram showing another embodiment of the present invention, and FIG. 3 is a block diagram showing a conventional example. 1 self-running counter, 2 random number table 3 address pointer 4 random number output counter 5 random number 6, gate circuit.
Claims (2)
れた一連の乱数を記憶させた乱数テーブルと、乱数要求
信号が発生したとき、前記乱数テーブルによって記憶さ
れた一連の乱数のアドレス値を出力するアドレスポイン
タとを含んでなる乱数発生装置において、一定時間間隔
でカウンタ値をインクリメントさせる自走カウンタと、
前記アドレスポインタの出力値を更新するための更新要
求信号を前記乱数テーブルからの出力回数または時間の
内、少なくとも一方で予め定められた所定のタイミング
で出力する更新要求信号発生手段とを付加し、前記更新
要求信号発生手段から更新要求信号が出力されたとき、
前記自走カウンタのカウンタ値が前記アドレスポインタ
の出力値に置き換わるようにしたことを特徴とする乱数
発生装置。1. A random number table in which a random number table or a series of random numbers previously obtained by calculation or the like is stored, and when a random number request signal is generated, an address value of the series of random numbers stored in the random number table is output. A self-running counter for incrementing a counter value at regular time intervals in a random number generator including an address pointer;
Update request signal generating means for outputting an update request signal for updating the output value of the address pointer at a predetermined timing predetermined at least one of the number of times output from the random number table or time, When an update request signal is output from the update request signal generating means,
A random number generator, wherein a counter value of the self-running counter is replaced with an output value of the address pointer.
数テーブルから出力された乱数の個数を計数し、前記計
数値が所定値になったとき更新要求信号を出力するよう
にした乱数出力回数カウンタを用いたことを特徴とする
特許請求の範囲第1項記載の乱数発生装置。2. A random number output number counter for counting the number of random numbers output from the random number table and outputting an update request signal when the counted value reaches a predetermined value as the update request signal generating means. 2. The random number generator according to claim 1, wherein the random number generator is used.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP63014870A JP2615743B2 (en) | 1988-01-26 | 1988-01-26 | Random number generator |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP63014870A JP2615743B2 (en) | 1988-01-26 | 1988-01-26 | Random number generator |
Publications (2)
Publication Number | Publication Date |
---|---|
JPH01189726A JPH01189726A (en) | 1989-07-28 |
JP2615743B2 true JP2615743B2 (en) | 1997-06-04 |
Family
ID=11873054
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP63014870A Expired - Lifetime JP2615743B2 (en) | 1988-01-26 | 1988-01-26 | Random number generator |
Country Status (1)
Country | Link |
---|---|
JP (1) | JP2615743B2 (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7257607B2 (en) | 2002-04-19 | 2007-08-14 | Nec Corporation | Random number generating apparatus, random number generating method, program for generating random numbers, audio decoder and audio decoding method |
Families Citing this family (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR100845928B1 (en) | 2000-10-24 | 2008-07-11 | 가부시키가이샤 에이치.에무.아이 | Random number generator |
KR20020081885A (en) * | 2001-04-20 | 2002-10-30 | 한국전자통신연구원 | Nonlinear Random Numbers Generator using FCSR and Substitution-BOX |
WO2003096181A1 (en) * | 2002-05-09 | 2003-11-20 | Niigata Seimitsu Co., Ltd. | Random number initial value generation device and method, random number initial value generation program |
JP2006287616A (en) * | 2005-03-31 | 2006-10-19 | Fujitsu Component Ltd | Transmission data encryption device and its decoding device |
Family Cites Families (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPS56114134A (en) * | 1980-02-12 | 1981-09-08 | Pioneer Electronic Corp | Monitor device for operation state of optical information reader |
JPS5736344A (en) * | 1980-08-13 | 1982-02-27 | Nec Corp | Random number generating equipment |
JPS58114134A (en) * | 1981-12-28 | 1983-07-07 | Hitachi Electronics Eng Co Ltd | Random number generator |
-
1988
- 1988-01-26 JP JP63014870A patent/JP2615743B2/en not_active Expired - Lifetime
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7257607B2 (en) | 2002-04-19 | 2007-08-14 | Nec Corporation | Random number generating apparatus, random number generating method, program for generating random numbers, audio decoder and audio decoding method |
Also Published As
Publication number | Publication date |
---|---|
JPH01189726A (en) | 1989-07-28 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
EP0267612A3 (en) | Timer/counter using a register block | |
KR890006009A (en) | Radio controller | |
JP2615743B2 (en) | Random number generator | |
GB1007644A (en) | Improvements in and relating to pulse supply systems | |
SE7712880L (en) | CONTROL MACHINE CONTROL SYSTEM FOR GLASS PRODUCTS | |
CA1070845A (en) | Function multiplexer | |
US4408118A (en) | Control network for use in knitting machines and the like | |
US3846757A (en) | Equal probability selection circuit | |
JP2725419B2 (en) | Counting circuit | |
SU1365358A1 (en) | Device for monitoring "m out of n" code | |
SU1080120A1 (en) | Programmed control device | |
SU690470A1 (en) | Probabilistic pulse distributor | |
SU1767510A1 (en) | Device for determining article optimum maintenance cycle | |
RU1803970C (en) | Pulse repetition frequency multiplier | |
RU1783526C (en) | Random member generator | |
RU1827714C (en) | Former of pulse sequence | |
SU1610596A1 (en) | Programmable timer | |
RU1800595C (en) | Multi-channel delayed pulse train generator | |
SU917113A1 (en) | Device for checking frequency | |
SU1660025A1 (en) | Remote control command driver | |
SU501469A1 (en) | A device for receiving a series of pulses | |
SU520565A1 (en) | Software driver | |
SU1129723A1 (en) | Device for forming pulse sequences | |
JPH0616361Y2 (en) | Digital clock correction circuit | |
JPS5611685A (en) | Refresh system |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
EXPY | Cancellation because of completion of term |