JP2567681B2 - Random number generator - Google Patents

Random number generator

Info

Publication number
JP2567681B2
JP2567681B2 JP63247851A JP24785188A JP2567681B2 JP 2567681 B2 JP2567681 B2 JP 2567681B2 JP 63247851 A JP63247851 A JP 63247851A JP 24785188 A JP24785188 A JP 24785188A JP 2567681 B2 JP2567681 B2 JP 2567681B2
Authority
JP
Japan
Prior art keywords
address
random number
search
searched
addresses
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
Application number
JP63247851A
Other languages
Japanese (ja)
Other versions
JPH0293930A (en
Inventor
元明 浅尾
伸夫 朽木
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Sanyo Denki Co Ltd
Original Assignee
Sanyo Denki Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Sanyo Denki Co Ltd filed Critical Sanyo Denki Co Ltd
Priority to JP63247851A priority Critical patent/JP2567681B2/en
Publication of JPH0293930A publication Critical patent/JPH0293930A/en
Application granted granted Critical
Publication of JP2567681B2 publication Critical patent/JP2567681B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Description

【発明の詳細な説明】 (イ)産業上の利用分野 本発明はグラフィックアート表示機能に備えたテレビ
ジョン受像機に用いられる乱数発生装置に関する。
DETAILED DESCRIPTION OF THE INVENTION (a) Field of Industrial Application The present invention relates to a random number generator used in a television receiver having a graphic art display function.

(ロ)従来の技術 本願出願人は先に特願昭63−97314号としてテレビジ
ョン画像上に所定の模様のマスクパターンを重畳して表
示するグラフィックアート機能を備えたテレビジョン受
像機を提案している。
(B) Prior Art The applicant of the present application previously proposed, as Japanese Patent Application No. 63-97314, a television receiver having a graphic art function for displaying a mask pattern of a predetermined pattern on a television image in a superimposed manner. ing.

上記テレビジョン受像機においてはグラフィックアー
トパターンを切り換える際、1つの画面を複数のブロッ
クに分割し、任意のブロックから1つづつ一定時間毎に
順次切換えることによりよりグラフィックアート効果を
発揮することができる。
In the above-mentioned television receiver, when switching the graphic art pattern, one screen is divided into a plurality of blocks, and one block from an arbitrary block is sequentially switched at regular time intervals so that a more graphic art effect can be exhibited. .

この様な機能を達成するためには即ち、パターンを切
換えるブロックの順序をランダムに選択するためには乱
数発生装置の出力によりブロックを選択すれば良い。
In order to achieve such a function, that is, in order to randomly select the order of the blocks for switching the patterns, the blocks may be selected by the output of the random number generator.

この乱数発生装置の従来例としては疑似乱数発生関数
を利用したものがある。即ち、第5図に示す如きリニア
フィードバックシフトレジスタによるものであり、これ
は8ビット長で(1)式によるiを含めてシフトする事
により乱数出力を得る。
As a conventional example of this random number generating device, there is one using a pseudo random number generating function. That is, it is based on a linear feedback shift register as shown in FIG. 5, which has a length of 8 bits and shifts including i according to equation (1) to obtain a random number output.

i=B1∀{B2∀(B4∀B7)} (ただし、Bnは乱数値のビットデータ) また、乱数テーブルを利用する方法がある。これは疑
似乱数発生関数を利用して乱数テーブルを作成し、この
テーブルから順に乱数値を呼出す方法である。
i = B 1 ∀ {B 2 ∀ (B 4 ∀B 7 )} (where Bn is bit data of random number value) There is also a method of using a random number table. This is a method in which a random number table is created using a pseudo random number generation function, and random number values are called in order from this table.

前者の方法では同じ乱数値が複数回出力される可能性
があるため、グラフィックアートパターンの切換えに利
用する場合、パターンの切換えが進み、同じ乱数値が出
力されると、パターンが切り変わらないため、序々に切
換え速度が遅くなり好ましくない。
In the former method, the same random number value may be output multiple times.Therefore, when it is used for switching the graphic arts pattern, if the pattern switching progresses and the same random number value is output, the pattern does not switch. However, the switching speed gradually decreases, which is not preferable.

また、後者の方法では同じ乱数値が2度出力されない
ように乱数テーブルを作成すれば上記欠点を解消できる
が、この方法では1つのテーブルが1つの出力系列に対
応することになり種々の出力系列を得ようとすれば非常
に膨大なテーブルをストアしておく必要がある。逆にテ
ーブル数を減らすとパターンの変化がいつも同じとなり
単調になるため好ましくない。
In the latter method, the above drawback can be solved by creating a random number table so that the same random number value is not output twice. However, in this method, one table corresponds to one output series and various output series If you want to get, you need to store a huge number of tables. On the contrary, if the number of tables is reduced, the pattern changes are always the same and become monotonous, which is not preferable.

(ハ)考案が解決しようとする課題 本考案は上述の点に鑑み為されたものであり、同じ乱
数値が複数回出力されることなく、且つ膨大な乱数テー
ブルをストアする必要のない乱数発生装置を提供するも
のである。
(C) Problems to be solved by the present invention The present invention has been made in view of the above points, and the same random number value is not output multiple times, and random number generation that does not require the storage of a huge random number table is performed. A device is provided.

(ニ)課題を解決するための手段 本発明は複数のアドレスに対応して複数の異なる乱数
値が記憶された乱数テーブルと、前記複数のアドレスの
うちサーチすべきアドレスを発生するアドレス発生手段
と、サーチを開始するアドレスを設定する開始アドレス
設定手段と、アドレスをいくつおきにサーチするかを設
定するオフセット設定手段と、前記乱数テーブルのボト
ムアドレスを記憶するボドムアドレス記憶手段と、現在
サーチしているアドレスと前記ボトムアドレスとを比較
する第1比較手段と、前記開始アドレス設定手段により
設定された開始アドレスを記憶する開始アドレス記憶手
段と、現在サーチしているアドレスと前記開始アドレス
とを比較する第2比較手段とを備え、前記アドレス発生
手段は前記開始アドレス設定手段、前記オフセット設定
手段、前記第1比較手段及び前記第2比較手段により制
御され、前記複数のアドレスを重複することなく全部サ
ーチし、このサーチしたアドレスに対応する乱数値を前
記乱数テーブルにより出力することを特徴とする乱数発
生装置である。
(D) Means for Solving the Problem The present invention is a random number table storing a plurality of different random number values corresponding to a plurality of addresses, and an address generating means for generating an address to be searched from among the plurality of addresses. , A start address setting means for setting an address for starting the search, an offset setting means for setting how often to search the address, a Bodom address storage means for storing a bottom address of the random number table, and a current search First comparing means for comparing the present address with the bottom address, starting address storing means for storing the starting address set by the starting address setting means, and comparing the currently searched address with the starting address. A second comparing means, wherein the address generating means is the start address setting means, the address Controlled by the offset setting means, the first comparing means, and the second comparing means, all the addresses are searched without duplication, and a random number value corresponding to the searched addresses is output by the random number table. A characteristic random number generator.

(ホ)作用 本発明のアドレス発生手段は乱数テーブルの複数のア
ドレスを重複することなく全部サーチし、このサーチし
たアドレスに対応する乱数値を前記乱数テーブルより出
力する様、作用する。
(E) Operation The address generating means of the present invention operates so as to search all of the plurality of addresses in the random number table without duplication and output the random number value corresponding to the searched address from the random number table.

(ヘ)実施例 以下、図面に従い本発明の一実施例を説明する。(F) Embodiment One embodiment of the present invention will be described below with reference to the drawings.

第1図は本実施例における乱数テーブルを示し、この
乱数テーブルはアドレス0〜Fまで16のアドレスに対応
する各メモリに予め異なる乱数値が記憶されている。そ
して、この乱数テーブルは後述するサーチ方法により16
個の乱数値が重複することなく全てサーチされる。
FIG. 1 shows a random number table in this embodiment. In this random number table, different random number values are stored in advance in each memory corresponding to 16 addresses from 0 to F. Then, this random number table is 16
All random numbers are searched without duplication.

次に、第2図に本実施例装置の機能ブロック図を示
す。同図において、(1)は前述した乱数テーブル、
(2)はこのテーブルのアドレスを発生するアドレス発
生手段、(3)は開始アドレスを設定する開始アドレス
設定手段、(4)はアドレスサーチの際、アドレスをい
くつおきにサーチするかを設定するオフセット設定手段
であり、このオフセット及び開始アドレスはサーチの開
始前に疑似乱数発生関数により設定され、設定されたオ
フセット及び開始アドレスの情報は前記アドレス発生手
段(2)へ入力される。(5)は乱数テーブル(1)の
ボトムアドレス、即ち、アドレスFを記憶しているボト
ムアドレス記憶手段、(6)はこのボトムアドレスと現
在サーチしているアドレスを比較し、現在のアドレスが
ボトムアドレスに対してどの位置にあるかを判断してア
ドレス発生手段(2)に伝える第1比較手段、(7)は
前記開始アドレス設定手段(3)により設定された開始
アドレスを記憶する開始アドレス記憶手段、(8)はこ
の開始アドレスと現在のアドレスとを比較し、現在のア
ドレスが開始アドレスに対してどの位置にあるかを判断
してアドレス発生手段(2)に伝える第2比較手段であ
る。
Next, FIG. 2 shows a functional block diagram of the apparatus of this embodiment. In the figure, (1) is the random number table described above,
(2) is an address generating means for generating an address of this table, (3) is a start address setting means for setting a start address, and (4) is an offset for setting the number of addresses to be searched at the time of address search. The offset and the start address are set by a pseudo random number generating function before the search is started, and the information on the set offset and the start address is input to the address generating means (2). (5) is a bottom address of the random number table (1), that is, bottom address storage means for storing the address F, (6) compares this bottom address with the currently searched address, and the current address is the bottom. First comparing means for judging which position is relative to the address and transmitting it to the address generating means (2), (7) is a start address storing means for storing the start address set by the start address setting means (3) The means (8) is a second comparing means for comparing the start address with the current address, determining which position the current address is with respect to the start address, and transmitting the result to the address generating means (2). .

尚、これらの機能は実際はマイクロコンピュータ内で
処理されるものである。
Note that these functions are actually processed in the microcomputer.

次に上述の装置の動作について、初期設定モジュール
のフローチャートを示す第3図及び乱数発生モジュール
のフローチャートを示す第4図と共に説明する。
Next, the operation of the above apparatus will be described with reference to FIG. 3 showing a flow chart of the initialization module and FIG. 4 showing a flow chart of the random number generation module.

各モジュールで使用するデータ格納エリア及び制御フ
ラグは次の通りである。
The data storage area and control flag used in each module are as follows.

ADDOFS…テーブルサーチ時のオフセット量 STAINI…テーブルサーチ開始アドレス ACTADD…そのステージでルックアップすべきテーブル
アドレス ENDADD…テーブルサーチ終了アドレス STADD…サーチがSTAINIを越えた時ルックアップすべ
きアドレス OVRTBL…サーチがテーブルボトムを越えた量 スタートフラグ…テーブルサーチ開始 通過フラグ…テーブルボトム通過 テーブルサーチ終了フラグ…テーブルサーチ終了 まず、初期設定モジュールでは開始アドレス設定手段
(3)及びオフセット設定手段(4)において、周知の
疑似乱数発生関数に従ってオフセット量(ADDOFS)及び
開始アドレス(STAINI)を設定すると共に各制御フラグ
をリセットする。次に乱数発生モジュールに移る。ここ
で、設定された開始アドレス(STAINI)は2、オフセッ
ト量を5とすると、第2図においてサーチ1周目のステ
ージではアドレスは2→7→Cの順にサーチされ対応す
るメモリからの乱数値が出力される。そして、次のアド
レスはテーブルボトムを越えるため、第1比較手段
(6)の比較出力によりアドレス発生手段(2)は現在
のアドレス(C)+オフセット量(5)−テーブルボト
ム(F)+テーブルトップ(0)で求められるアドレ
ス、即ちアドレス(2)をサーチ2周目の最初のアドレ
スとしメモリ内容を出力する。また、次のアドレスは開
始アドレス(STAINI)を越えるが、このときは第2比較
手段(8)の比較出力によりアドレス発生手段(2)は
開始アドレスを1インクリメントしたアドレスと、即ち
アドレス(3)を次のアドレス(STADD)とする。従っ
て、サーチ2周目のステージでは1→3→8→Dの順に
サーチされる。この様にサーチ1周して開始アドレス
(STAINI)を越えると次にサーチすべきアドレス(STAD
D)は1づつインクリメントされていく。
ADDOFS… Offset amount during table search STAINI… Table search start address ACTADD… Table address to be looked up at that stage ENDADD… Table search end address STADD… Address to be looked up when search exceeds STAINI OVRTBL… Search is table Amount exceeding the bottom Start flag ... Start of table search Pass flag ... Pass of table bottom Table search end flag ... End of table search First, in the initial setting module, the well-known pseudo in the start address setting means (3) and the offset setting means (4). The offset amount (ADDOFS) and the start address (STAINI) are set according to the random number generation function, and each control flag is reset. Next, move to the random number generation module. Here, assuming that the set start address (STAINI) is 2 and the offset amount is 5, in the stage of the first round of search in FIG. 2, the addresses are searched in the order of 2 → 7 → C, and the random number value from the corresponding memory is searched. Is output. Then, since the next address exceeds the table bottom, the address generation means (2) outputs the current address (C) + offset amount (5) -table bottom (F) + table according to the comparison output of the first comparison means (6). The address obtained at the top (0), that is, the address (2) is used as the first address of the second round of search and the memory contents are output. Further, the next address exceeds the start address (STAINI), but at this time, the address generation means (2) is an address obtained by incrementing the start address by 1 by the comparison output of the second comparison means (8), that is, the address (3). Is the next address (STADD). Therefore, in the stage of the second lap of the search, the search is performed in the order of 1 → 3 → 8 → D. In this way, when one search is performed and the start address (STAINI) is exceeded, the address to be searched next (STAD
D) is incremented by 1.

以上の様にサーチが繰り返され、現在のアドレス(AC
TADD)が終了アドレス(ENDADD)(即ちアドレス7)に
一致したらテーブルサーチを終了する。そして、上述の
テーブルサーチでは同一のアドレスは2回以上指定され
ることなく全てのアドレスがサーチされる。
The search is repeated as above, and the current address (AC
When TADD) matches the end address (ENDADD) (that is, address 7), the table search ends. In the above table search, all addresses are searched without specifying the same address more than once.

そして、再度、乱数発生を行なう場合は、初期設定モ
ジュールにおいて前回とは異なる開始アドレス及びオフ
セット量が設定されるため異なる出力系列の乱数値を得
ることができる。
Then, when the random number is generated again, the start address and the offset amount different from the last time are set in the initial setting module, so that the random number value of the different output sequence can be obtained.

上述の様な乱数発生装置を画面を複数のブロックに分
割してグラフィックアートパターンの順次切換えの際の
切換わるブロックの指定に用いると、ブロックは重複す
ることなく指定されるのでパターンの切換えが進んでも
切換え速度が遅くなることがない。
When the screen is divided into a plurality of blocks and the above-mentioned random number generator is used for designating the blocks to be switched when the graphic arts patterns are sequentially switched, the blocks are designated without duplication, so that the patterns are switched. However, the switching speed does not slow down.

また、パターン切換え時、切り換わるブロックの順序
も毎回異なるため、単調とならない。
Further, when the pattern is switched, the order of the blocks to be switched is different every time, so that it is not monotonous.

(ト)発明の効果 上述の如く本発明に依れば、グラフィックアート機能
を有するテレビジョン受像機に用いた場合、画面を複数
のブロックに分割してグラフィックアートパターンの順
次切換えの際、ブロックは重複することなく指定される
のでパターンの切換えが進んでも切換え速度が遅くなる
ことがない。
(G) Effect of the Invention According to the present invention as described above, when used in a television receiver having a graphic arts function, when a screen is divided into a plurality of blocks and the graphic arts patterns are sequentially switched, Since they are specified without duplication, the switching speed does not slow down even if pattern switching progresses.

また、パターン切換え時、切換わるブロックの順序も
毎回異なるため単調とならない。
In addition, when the pattern is switched, the order of the blocks to be switched is different every time, so that it is not monotonous.

また、乱数値の範囲は乱数テーブルの大きさを変える
ことにより任意に設定可能であり、さらに乱数テーブル
は1つでも良いためストアするメモリ容量は小さくて済
む。
Further, the range of the random number value can be arbitrarily set by changing the size of the random number table, and since only one random number table is required, the memory capacity to be stored can be small.

【図面の簡単な説明】[Brief description of drawings]

第1図は本発明の一実施例における乱数発生装置の乱数
テーブルを示す図、第2図は本実施例装置の機能ブロッ
ク、第3図は初期設定モジュールのフローチャート、第
4図は乱数発生モジュールのフローチャートである。 第5図は従来の乱数発生装置を示す図である。
FIG. 1 is a diagram showing a random number table of a random number generator in one embodiment of the present invention, FIG. 2 is a functional block of the device of this embodiment, FIG. 3 is a flowchart of an initialization module, and FIG. 4 is a random number generator module. It is a flowchart of. FIG. 5 is a diagram showing a conventional random number generator.

Claims (1)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】複数のアドレスに対応して複数の異なる乱
数値が記憶された乱数テーブルと、前記複数のアドレス
のうちサーチすべきアドレスを発生するアドレス発生手
段と、サーチを開始するアドレスを設定する開始アドレ
ス設定手段と、アドレスをいくつおきにサーチするかを
設定するオフセット設定手段と、前記乱数テーブルのボ
トムアドレスを記憶するボトムアドレス記憶手段と、現
在サーチしているアドレスと前記ボトムアドレスとを比
較する第1比較手段と、前記開始アドレス設定手段によ
り設定された開始アドレスを記憶する開始アドレス記憶
手段と、現在サーチしているアドレスと前記開始アドレ
スとを比較する第2比較手段とを備え、前記アドレス発
生手段は前記開始アドレス設定手段、前記オフセット設
定手段、前記第1比較手段及び前記第2比較手段により
制御され、前記複数のアドレスを重複することなく全部
サーチし、このサーチしたアドレスに対応する乱数値を
出力することを特徴とする乱数発生装置。
1. A random number table storing a plurality of different random number values corresponding to a plurality of addresses, an address generating means for generating an address to be searched among the plurality of addresses, and an address for starting the search. Start address setting means, offset setting means for setting how many addresses are searched, bottom address storage means for storing the bottom address of the random number table, the currently searched address and the bottom address. First comparing means for comparing, starting address storing means for storing the starting address set by the starting address setting means, and second comparing means for comparing the currently searched address with the starting address, The address generating means is the start address setting means, the offset setting means, the first Is controlled by the compare means and the second comparison means searches all without overlapping the plurality of addresses, a random number generator and outputs random number values corresponding to the search address.
JP63247851A 1988-09-30 1988-09-30 Random number generator Expired - Lifetime JP2567681B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP63247851A JP2567681B2 (en) 1988-09-30 1988-09-30 Random number generator

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP63247851A JP2567681B2 (en) 1988-09-30 1988-09-30 Random number generator

Publications (2)

Publication Number Publication Date
JPH0293930A JPH0293930A (en) 1990-04-04
JP2567681B2 true JP2567681B2 (en) 1996-12-25

Family

ID=17169599

Family Applications (1)

Application Number Title Priority Date Filing Date
JP63247851A Expired - Lifetime JP2567681B2 (en) 1988-09-30 1988-09-30 Random number generator

Country Status (1)

Country Link
JP (1) JP2567681B2 (en)

Cited By (3)

* Cited by examiner, † Cited by third party
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
US9696965B2 (en) 2014-12-16 2017-07-04 Nuvoton Technology Corporation Input-dependent random number generation using memory arrays
US11601120B2 (en) 2021-02-03 2023-03-07 Nuvoton Technology Corporation Attack-resistant ring oscillators and random-number generators

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20020081885A (en) * 2001-04-20 2002-10-30 한국전자통신연구원 Nonlinear Random Numbers Generator using FCSR and Substitution-BOX
TWI793429B (en) * 2019-07-25 2023-02-21 熵碼科技股份有限公司 Encryption key generating engine and transmission system

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS60142387A (en) * 1983-12-28 1985-07-27 富士通株式会社 Random number mixing circuit

Cited By (3)

* Cited by examiner, † Cited by third party
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
US9696965B2 (en) 2014-12-16 2017-07-04 Nuvoton Technology Corporation Input-dependent random number generation using memory arrays
US11601120B2 (en) 2021-02-03 2023-03-07 Nuvoton Technology Corporation Attack-resistant ring oscillators and random-number generators

Also Published As

Publication number Publication date
JPH0293930A (en) 1990-04-04

Similar Documents

Publication Publication Date Title
US5029112A (en) Image information display system for displaying a plurality of image information pieces with a directed display state
KR950007441A (en) Apparatus and method for generating a zoom image signal
JP2567681B2 (en) Random number generator
KR940024615A (en) Image forming method and apparatus for executing the method
JP3561953B2 (en) Electronic musical instrument
US5293483A (en) Combined image and control data image memory device
JPS6116080B2 (en)
US5677503A (en) Tone generator
JP4047414B2 (en) Electronic musical instruments
JPS6217833Y2 (en)
KR100304174B1 (en) Cursor display control unit
JPH0573049A (en) Parameter setting device of electronic musical instrument
JPS6032092A (en) Attribute control system
KR0155888B1 (en) Scrolling screen-contraction apparatus
JP3122168B2 (en) Test pattern creation device
JPH05290180A (en) Pattern generator
JPS62269997A (en) Automatic rhythm performer
JPH0251196A (en) Painting-out pattern reference system
JP2585519B2 (en) Musical sound wave data generator
KR0160727B1 (en) Scrolling screen transforming apparatus
KR970064016A (en) Hopping frequency generation method and apparatus
JPH0594172A (en) Character display device
JPH01308650A (en) Generator of character pattern
JPH04139571A (en) Document processor
JPS6069690A (en) Display unit