RANDOM NUMBER GENERATION APPARATUS, METHOD AND PROGRAM
20210286593 · 2021-09-16
Assignee
Inventors
Cpc classification
G06F7/586
PHYSICS
G06F17/18
PHYSICS
International classification
Abstract
A random number generation apparatus comprises: a first random number generating part 2 generating a random number u=(u.sub.1, . . . ,u.sub.D).sup.T∈[−∞,∞].sup.D; a second random number generating part 3 generating a random number v∈[0,f′.sub.max]; and a determining part 4 determining whether f′(x.sub.1=u.sub.1, . . . ,x.sub.D=u.sub.D)≥v or not, and, if f′(x.sub.1=u.sub.1, . . . ,x.sub.D=u.sub.D)≥v, adopting u as a random number according to f′(x.sub.1, . . . ,x.sub.D), wherein D is a predetermined positive integer, for i=1, . . . ,D, [h.sub.i] is a predetermined possible range for a random variable x.sub.i, a hole [h] is [h]=([h.sub.1], . . . ,[h.sub.D]).sup.T, H is a probability of a predetermined basic distribution function f(x.sub.1, . . . ,x.sub.D) in the hole [h], α=1/(1−H), a corrected distribution function f′(x.sub.1, . . . ,x.sub.D) is defined by Expressions (1) and (2), and f′.sub.max is a maximum value of f′(x.sub.1, . . . ,x.sub.D).
Claims
1. A random number generation apparatus, comprising: a first random number generating part generating a random number u=(u.sub.1, . . . ,u.sub.D).sup.T∈[−∞,∞].sup.D; a second random number generating part generating a random number v∈[0,f′.sub.max]; and a determining part determining whether f′(x.sub.1=u.sub.1, . . . ,x.sub.D=u.sub.D)≥v or not, and, if f′(x.sub.1=u.sub.1, . . . ,x.sub.D=u.sub.D)≥v, adopting u as a random number according to f′(x.sub.1, . . . ,x.sub.D), wherein D is a predetermined positive integer, for i=1, . . . ,D, [h.sub.i] is a predetermined possible range for a random variable x.sub.i, a hole [h] is [h]=([h.sub.1], . . . ,[h.sub.D]).sup.T, H is a probability of a predetermined basic distribution function f(x.sub.1, . . . ,x.sub.D) in the hole [h], α=1/(1−H), a corrected distribution function f′(x.sub.1, . . . ,x.sub.D) is defined by Expressions (1) and (2):
[Formula 29]
H=∫.sub.x.sub.
f′(x.sub.1, . . . ,x.sub.D)=0 if x.sub.1∈[h.sub.1]∧ . . . ∧x.sub.D∈[h.sub.D] (1)
f′(x.sub.1, . . . ,x.sub.D)=α.Math.f(x.sub.1, . . . ,x.sub.D) otherwise (2) and f′.sub.fax is a maximum value of f′(x.sub.1, . . . ,x.sub.D).
2. A random number generation apparatus comprising: an arithmetic operation part obtaining r=(r.sub.1, . . . ,r.sub.D).sup.T in the end, by performing, for each of i=1, . . . ,D, a process for generating a random number u.sub.i∈[0,1], obtaining a random number r.sub.i=F.sup.−1(u.sub.i) according to f′(x.sub.i) using the generated and x.sub.i=r.sub.i, wherein D is a predetermined positive integer, for i=1, . . . ,D, [h.sub.i] is a predetermined possible range for a random variable x.sub.i, a hole [h] is [h]=([h.sub.1], . . . ,[h.sub.D]).sup.T, H is a probability of a predetermined basic distribution function f(x.sub.1, . . . ,x.sub.D) in the hole [h], α=1/(1−H), a corrected distribution function f′(x.sub.1, . . . ,x.sub.D) is defined by Expressions (1) and (2):
[Formula 30]
H=∫.sub.x.sub.
f′(x.sub.1, . . . ,x.sub.D)=0 if x.sub.1∈[h.sub.1]∧ . . . ∧x.sub.D∈[h.sub.D] (1)
f′(x.sub.1, . . . ,x.sub.D)=α.Math.f(x.sub.1, . . . ,x.sub.D) otherwise (2) f′(x.sub.i) is a peripheral distribution of f′(x.sub.1, . . . ,x.sub.D) of x.sub.i, F(t.sub.i) is a function defined by Expression (2′):
[Formula 31]
f′(x.sub.i)=∫.sub.−∞.sup.∞ . . . ∫.sub.−∞.sup.∞f′(x.sub.1, . . . ,x.sub.D)dx.sub.1 . . . dx.sub.i−1dx.sub.i+1 . . . dx.sub.D
F(t.sub.i)=∫.sub.−∞.sup.t.sup.
3. The random number generation apparatus according to claim 1 or 2, wherein when D=2, N is a predetermined positive integer, there are N predetermined possible ranges [h.sub.i] for the random variable x.sub.i, the N predetermined possible ranges are {[h.sub.i]}.sub.i=1.sup.N{([h.sub.1].sub.i,[h.sub.2].sub.i).sup.T}.sub.i=1.sup.N={([(s.sub.1).sub.i,(e.sub.1).sub.i],[(s.sub.2).sub.i,(e.sub.2).sub.i]).sup.T}.sub.i=1.sup.N, (μ.sub.x1,2σ.sub.x1.sup.2),(μ.sub.x2,2σ.sub.x2.sup.2) are predetermined parameters, the basic distribution function f(x.sub.1, . . . ,x.sub.D) is Lap(x.sub.1,x.sub.2) defined by Expression (3), sign(a) is a function that outputs a sign {+,−} of an input a, a function g(s,e) is defined by Expressions (5) and (6) when s≤e, H described above is defined by Expression (4), and the corrected distribution function f′ is Lap′(x.sub.1,x.sub.2) defined by Expressions (7) and (8):
4. The random number generation apparatus according to claim 2, wherein when D=2, the predetermined possible range [h.sub.i] for the random variable x.sub.i is [h.sub.i]=([h.sub.1].sub.i,[h.sub.2].sub.i).sup.T=([a,b],[c,d]).sup.T, (μ.sub.x1,2σ.sub.x1.sup.2) and (μ.sub.x2,2σ.sub.x2.sup.2) are predetermined parameters, a first area S.sub.1 is (x.sub.1≥μ.sub.x1)∧(x.sub.2≥μ.sub.x2), a second area S.sub.2 is (x.sub.1≤μ.sub.x1)∧(x.sub.2≥μ.sub.x2), a third area S.sub.3 is (x.sub.1≥μ.sub.x1)∧(x.sub.2≤μ.sub.x2) and a fourth area S.sub.4 is (x.sub.1≤μ.sub.x1)∧(x.sub.2≤μ.sub.x2), if the hole [h] is in the first area S.sub.1 or the second area S.sub.2, the corrected distribution function f′ is Lap′(x.sub.1) defined by Expressions (9) and (10), and if the hole [h] is in the third area S.sub.3 or the fourth area S.sub.4, the corrected distribution function f′ is Lap′(x.sub.1) defined by Expressions (11) and (12):
5. A random number generation method comprising: a first random number generating step of a first random number generating part generating a random number u=(u.sub.1, . . . ,u.sub.D).sup.T∈[−∞,∞].sup.D; a second random number generating step of a second random number generating part generating a random number v∈[0,f′.sub.max]; and a determining step of a determining part determining whether f′(x.sub.1=u.sub.1, . . . ,x.sub.D=u.sub.D)≥v or not, and, if f′(x.sub.1=u.sub.1, . . . ,x.sub.D=u.sub.D)≥v, adopting u as a random number according to f′(x.sub.1, . . . ,x.sub.D), wherein D is a predetermined positive integer, for i=1, . . . ,D, [h.sub.i] is a predetermined possible range for a random variable x a hole [h] is [h]=([h.sub.1], . . . ,[h.sub.D]).sup.T, H is a probability of a predetermined basic distribution function f(x.sub.1, . . . ,x.sub.D) in the hole [h], α=1/(1−H), a corrected distribution function f′(x.sub.1, . . . ,x.sub.D) is defined by Expressions (1) and (2):
[Formula 37]
H=∫.sub.x.sub.
f′(x.sub.1, . . . ,x.sub.D)=0 if x.sub.1∈[h.sub.1]∧ . . . ∧x.sub.D∈[h.sub.D] (1)
f′(x.sub.1, . . . ,x.sub.D)=α.Math.f(x.sub.1, . . . ,x.sub.D) otherwise (2) and f′.sub.max is a maximum value of f′(x.sub.1, . . . ,x.sub.D).
6. A random number generation method, comprising: an arithmetic operation step of an arithmetic operation part obtaining r=(r.sub.1, . . . ,r.sub.D).sup.T in the end, by performing, for each of i=1, . . . ,D, a process for generating a random number u.sub.i∈[0,1], obtaining a random number r.sub.i=F.sup.−1(u.sub.i) according to f′(x.sub.i) using the generated and x.sub.i=r.sub.i, wherein D is a predetermined positive integer, for i=1, . . . ,D, [h.sub.i] is a predetermined possible range for a random variable x.sub.i, a hole [h] is [h]([h.sub.1], . . . ,[h.sub.D]).sup.T, H is a probability of a predetermined basic distribution function f(x.sub.1, . . . ,x.sub.D) in the hole [h], α=1/(1−H), a corrected distribution function f′(x.sub.1, . . . ,x.sub.D) is defined by Expressions (1) and (2):
[Formula 38]
H=∫.sub.x.sub.
f′(x.sub.1, . . . ,x.sub.D)=0 if x.sub.1∈[h.sub.1]∧ . . . ∧x.sub.D∈[h.sub.D] (1)
f′(x.sub.1, . . . ,x.sub.D)=α.Math.f(x.sub.1, . . . ,x.sub.D) otherwise (2) f′(x.sub.i) is a peripheral distribution of f′(x.sub.1, . . . ,x.sub.D) of x.sub.i, F(t.sub.i) is a function defined by Expression (2′):
[Formula 39]
f′(x.sub.i)=∫.sub.−∞.sup.∞ . . . ∫.sub.−∞.sup.∞f′(x.sub.1, . . . ,x.sub.D)dx.sub.1 . . . dx.sub.i−1dx.sub.i+1 . . . dx.sub.D
F(t.sub.i)=∫.sub.−∞.sup.t.sup.
7. A program for causing a computer to function as each part of the random number generation apparatus according to claim 1.
Description
BRIEF DESCRIPTION OF THE DRAWINGS
[0025]
[0026]
[0027]
[0028]
[0029]
[0030]
[0031]
DETAILED DESCRIPTION OF THE EMBODIMENTS
[0032] Embodiments of the present invention will be described below with reference to drawings.
[0033] Hereinafter, a distribution function that generates random numbers included in an impossible area is called a basic distribution function f(x.sub.1, . . . ,x.sub.D), and a distribution function that does not generate random numbers included in an impossible area is called a corrected distribution function f′(x.sub.1, . . . ,x.sub.D), where, ∀D∈N.sup.+\{0}. In other words, D is a predetermined positive integer.
[0034] An impossible area of a random variable is called “a hole”, and the area of the hole is given as a parameter, for example, as shown below.
[0035] A hole [h]=([h.sub.1], . . . ,[h.sub.D]).sup.T is a hypercube in D-dimensional space, and each [h.sub.i] indicates a range [s.sub.i,e.sub.i] for a random variable x.sub.i.
[0036] The present invention is to generate a random number r∈R.sup.D according to an arbitrary D-dimensional probability distribution function f(x.sub.1, . . . ,x.sub.D). Intuitively, the process of the present invention is to express the function f(x.sub.1, . . . ,x.sub.D) as D one-dimensional probability distribution functions, sequentially generate a random number r.sub.i∈R D times, and obtain r=(r.sub.1, . . . ,r.sub.D).sup.T, a set of r.sub.i, in the end.
First Embodiment
[0037] For example, a random number generation apparatus of a first embodiment is provided with a first random number generating part 2, a second random number generating part 3 and a determining part 4 as shown in
[0038] For example, a random number generation method of the first embodiment is realized by each part of the random number generation apparatus performing processes from step S2 to step S4 illustrated in
[0039] Hereinafter, when the basic distribution function f is given, a procedure for generating a random number r∈R.sup.D of the first embodiment will be shown below. In this procedure, a technique of a rejection method is used. Hereinafter, a maximum value of the corrected distribution function f′ is indicated by f′.sub.max.
[0040] The random number generation apparatus outputs a D-dimensional random number r=(r.sub.1, . . . ,r.sub.D).sup.T with the basic distribution function f and the hole [h] as input.
[0041] A probability H of a basic distribution function f(x.sub.1, . . . , x.sub.D) in the hole [h] is defined as below.
[Formula 4]
H=∫.sub.x.sub.
[0042] When α=1/(1−H), a corrected distribution function f(x.sub.1, . . . , x.sub.D) is defined by Expressions (1) and (2).
[Formula 5]
f′(x.sub.1, . . . ,x.sub.D)=0 if x.sub.1∈[h.sub.1]∧ . . . ∧x.sub.D∈[h.sub.D] (1)
f′(x.sub.1, . . . ,x.sub.D)=α.Math.f(x.sub.1, . . . ,x.sub.D) otherwise (2)
[0043] For example, the random number generation apparatus is provided with the function generating part 1 that calculates the probability H and the corrected distribution function f′(x.sub.1 . . . , x.sub.D), and the function generating part 1 calculates the probability H and the corrected distribution f′(x.sub.1 . . . , x.sub.D) in advance before subsequent processes are performed (step S1). The random number generation apparatus may not be provided with the function generating part 1. In this case, in subsequent processes, as the probability H and the corrected distribution function f′(x.sub.1 . . . , x.sub.D), the random number generation apparatus uses those calculated by another apparatus in advance.
[0044] The first random number generating part 2 generates a random number u=(u.sub.1, . . . ,u.sub.D).sup.T∈[−∞,∞].sup.D (step S2). The first random number generating part 2 generates, for example, a uniform random number u=(u.sub.1, . . . ,u.sub.D).sup.T∈[−∞,∞].sup.D as the random number u. The generated random number u is outputted to the determining part 4.
[0045] The second random number generating part 3 generates a random number v∈[0,f′.sub.max] (step S3). The second random number generating part 3 generates a uniform random number v∈[0,f′.sub.max] as the random number v. The generated random number v is outputted to the determining part 4.
[0046] The determining part 4 determines whether f′(x.sub.1=u.sub.1, . . . ,x.sub.D=u.sub.D)≥v or not. If f′(x.sub.1=u.sub.1, . . . ,x.sub.D=u.sub.D)≥v, the determining part 4 adopts the u as a random number according to f′(x.sub.1, . . . ,x.sub.D) and outputs the random number u (step S4).
[0047] If f′(x.sub.1=u.sub.1, . . . ,x.sub.D=u.sub.D)<v, the determining part 4 causes the first random number generating part 2 and the second random number generating part 3 to perform the processes of steps S2 and S3, respectively, again. In other words, the determining part 4 causes the first random number generating part 2 and the second random number generating part 3 to perform the processes of steps S2 and S3, respectively, until f′(x.sub.1=u.sub.1, . . . ,x.sub.D=u.sub.D)≥v.
[0048] By the above processes, a multidimensional random number according to a multidimensional probability distribution such that a probability in the hole [h], which is a predetermined area, is zero can be generated. If an expression of a multidimensional probability distribution can be obtained, it is possible to generate random numbers not only from a multidimensional probability distribution such that a probability in an impossible area is zero but from an arbitrary probability distribution.
[0049] For example, by using this random number generation method, personal data that is impossible in a real society is not generated when anonymization of a database that includes personal data having a plurality of attributes is performed.
[0050] Attributes in a database to be anonymized are not necessarily independent but may be dependent on one another. In Non-patent literature 1, anonymization is applicable only when attributes in a database are independent and cannot be trivially extended to a multidimensional probability distribution such that there are attributes dependent on one another.
Second Embodiment
[0051] A procedure for generating a random number r∈R.sup.D the processing speed of which is faster than that of the procedure of the first embodiment will be shown below. In this procedure, a technique of an inverse function method is used.
[0052] For example, a random number generation apparatus of the second embodiment is provided with an arithmetic operation part 5 as shown in
[0053] For example, a random number generation method of the second embodiment is realized by each part of the random number generation apparatus performing a process of step S5 illustrated in
[0054] The random number generation apparatus outputs a D-dimensional random number r=(r.sub.1, . . . ,r.sub.D).sup.T with the basic distribution function f and the hole [h] as input.
[0055] A probability H of a basic distribution function f(x.sub.1, . . . , x.sub.D) in the hole [h] is defined as below.
[Formula 6]
H=∫.sub.x.sub.
[0056] When α=1/(1−H), a corrected distribution function f′(x.sub.1, . . . , x.sub.D) is defined by Expressions (1) and (2).
[Formula 7]
f′(x.sub.1, . . . ,x.sub.D)=0 if x.sub.1∈[h.sub.1]∧ . . . ∧x.sub.D∈[h.sub.D] (1)
f′(x.sub.1, . . . ,x.sub.D)=α.Math.f(x.sub.1, . . . ,x.sub.D) otherwise (2)
[0057] For example, the random number generation apparatus is provided with the function generating part 1 that calculates the probability H and the corrected distribution function f′(x.sub.1 . . . , x.sub.D), and the function generating part 1 calculates the probability H and the corrected distribution f′(x.sub.1 . . . , x.sub.D) in advance before subsequent processes are performed (step S1). The random number generation apparatus may not be provided with the function generating part 1. In this case, in subsequent processes, as the probability H and the corrected distribution function f′(x.sub.1 . . . , x.sub.D), the random number generation apparatus uses those calculated by another apparatus in advance.
[0058] By performing, for each of i=1, . . . , D, a process for generating a random number u.sub.i∈[0,1], obtaining a random number r.sub.i=F.sup.−1(u.sub.i) according to f′(x.sub.i) using the generated u.sub.i, and x.sub.i=r.sub.i, the arithmetic operation part 5 obtains r=(r.sub.1, . . . ,r.sub.D).sup.T in the end (step S5), wherein f′(x.sub.i) is a peripheral distribution of f′(x.sub.1, . . . ,x.sub.D) of x.sub.i, F(t.sub.i) is a function defined by Expression (2′)
[Formula 8]
f′(x.sub.i)=∫.sub.−∞.sup.∞ . . . ∫.sub.−∞.sup.∞f′(x.sub.1, . . . ,x.sub.D)dx.sub.1 . . . dx.sub.i−1dx.sub.i+1 . . . dx.sub.D
F(t.sub.i)=∫.sub.−∞.sup.t.sup.
and F.sup.−1(t.sub.i) is an inverse function of F(t.sub.i).
[0059] The arithmetic operation part 5 may perform processes from step S50 to step S57 below to perform step S5.
[0060] For example, first, for i=1 (step S50), the arithmetic operation part 5 derives a peripheral distribution f′(x.sub.1) of f′(x.sub.1,x.sub.2, . . . ,x.sub.D) of x.sub.1 (step S51).
[Formula 9]
f′(x.sub.i)=∫.sub.−∞.sup.∞ . . . ∫.sub.−∞.sup.∞f′(x.sub.1, . . . ,x.sub.D)dx.sub.1 . . . dx.sub.i−1dx.sub.i+1 . . . dx.sub.D
[0061] Then, the arithmetic operation part 5 derives a cumulative density function F(t.sub.1) (step S52).
[Formula 10]
F(t.sub.i)=∫.sub.−∞.sup.t.sup.
[0062] Then, the arithmetic operation part 5 derives F.sup.−1(t.sub.1) which is an inverse function of F(t.sub.1) (step S53).
[0063] Then, the arithmetic operation part 5 generates a random number u.sub.1∈[0,1] (step S54). The arithmetic operation part 5 generates, for example, a uniform random number u.sub.1∈[0,1] as the random number u.sub.1.
[0064] Then, the arithmetic operation part 5 obtains a random number r.sub.1F.sup.−1(u.sub.1) according to f′(x.sub.1) using the generated u.sub.1 (step S55). That is, the arithmetic operation part 5 calculates an output value in the case of inputting the generated u.sub.1 to F.sup.−1(t.sub.1) and sets the output value as r.sub.1.
[0065] Then, the arithmetic operation part 5 substitutes r.sub.1 for x.sub.1 of f′(x.sub.1, . . . ,x.sub.D) to obtain f′(x.sub.2, . . . ,x.sub.D|x.sub.1=r.sub.1) (step S56).
[0066] Then, for integers .sup.∀i∈[2,D], the arithmetic operation part 5 performs an operation similar to steps S51 to S56 described above for f′(x.sub.i, . . . ,x.sub.D|x.sub.1=r.sub.1, . . . ,x.sub.i−1=r.sub.i−1) to obtain r=(r.sub.1, . . . ,r.sub.D).sup.T (step S57).
[0067] As described above, a multidimensional probability distribution may be converted to one-dimensional peripheral distributions to sequentially generate random numbers using an inverse function method.
[0068] It is possible to generate random numbers according to a multidimensional probability distribution such that a probability in the hole [h], which is a predetermined area, is zero by the second embodiment as like as the first embodiment though the procedure for generating random numbers of the second embodiment is different from that of the first embodiment.
Specific Example 1
[0069] An example of the corrected distribution function f′ in the case of D=2 will be described below.
[0070] Where, N is a predetermined positive integer, and there are N predetermined possible ranges [h.sub.i] for the random variable x.sub.i. The N predetermined possible ranges are {[h.sub.i]}.sub.i=1.sup.N{([h.sub.1].sub.i,[h.sub.2].sub.i).sup.T}.sub.i=1.sup.N={([(s.sub.1).sub.i,(e.sub.1).sub.i],[(s.sub.2).sub.i,(e.sub.2).sub.i]).sup.T}.sub.i=1.sup.N. As described above, the number of holes is to be N.
[0071] Further, (μ.sub.x1,2σ.sub.x1.sup.2) and (μ.sub.x2,2σ.sub.x2.sup.2) are predetermined parameters, and the basic distribution function f′(x1, . . . , x.sub.D) is Laplace distribution Lap(x.sub.1,x.sub.2) defined by Expression (3). The Laplace distribution Lap(x.sub.1,x.sub.2) is shown in
[0072] The sign(a) is a function that outputs a sign {+,−} of an input a, a function g(s,e) is defined by Expressions (5) and (6) when s≤e, and H is defined by Expression (4), then the corrected distribution function f′ is Lap′(x.sub.1,x.sub.2) defined by Expressions (7) and (8).
Specific Example 2
[0073] Where, an example of the processes from step S50 to step S56 of the second embodiment will be described.
[0074] The corrected distribution function f′ is Lap′(x.sub.1,x.sub.2) with one hole [h] that is shown in
[0075] Where, a first area S.sub.1 is (x.sub.1≥μ.sub.x1)∧(x.sub.2≥μ.sub.x2), a second area S.sub.2 is (x.sub.1≤μ.sub.x1)∧(x.sub.2≥μ.sub.x2), a third area S.sub.3 is (x.sub.1≥μ.sub.x1)∧(x.sub.2≤μ.sub.x2) and a fourth area S.sub.4 is (x.sub.1≤μ.sub.x1)∧(x.sub.2≤μ.sub.x2).
[0076] First, a peripheral distribution of x.sub.1 will be considered in order to obtain a random number r.sub.1.
[0077] 1. If the hole [h] is in the first area S.sub.1 or the second area S.sub.2, the corrected distribution function f′ is Lap′(x.sub.1) defined by Expressions (9) and (10).
[0078] 2. If the hole [h] is in the third area S.sub.3 or the fourth area S.sub.4, the corrected distribution function f′ is Lap′(x.sub.1) defined by Expressions (11) and (12).
[0079] If a hole is across areas, the above cases 1. and 2. can be combined. Next, in order to generate a random number r.sub.1, inverse functions shown by Expressions (13), (14), (15) and (16) are derived from the cumulative density function:
[Formula 17]
F(t.sub.i)=Lap′(x.sub.1≤t.sub.1)=∫.sub.−∞.sup.t.sup.
[0080] Since inverse functions can be derived in other areas by using a similar procedure, description will be made here on only a case where there is a hole in the first area.
[0081] Hereinafter,
[0082] i) When −∞≤t.sub.1≤μ.sub.x1:
[0083] ii) When μ.sub.x1≤t.sub.1≤a:
[0084] iii) When a≤t.sub.1≤b:
[0085] iv) When b≤t.sub.1:
[0086] By substituting u.sub.1∈[0,1] according to a uniform distribution U.sub.[0,1] for F(t.sub.1) of Expressions (13), (14), (15) and (16), the random number r.sub.1=t.sub.1 according to Expressions (9) and (10) is generated. A probability density function Lap′(x.sub.2|x.sub.1=r.sub.1) in the case of x.sub.1=r.sub.1 is as follows:
[0087] Where, γ is defined by the following expression:
[0088] At this time, in order to generate a random number r.sub.2, inverse functions shown in Expressions (19), (20) and (21) are derived from the cumulative density function:
[Formula 25]
F(t.sub.2)=Lap′(x.sub.2≤t.sub.2)=∫.sub.−∞.sup.t.sup.
[0089] i) When −∞≤t.sub.2≤μ.sub.x2:
[0090] ii) When μ.sub.x2≤t.sub.2≤c:
[0091] iii) When c≤t.sub.2≤d, F(t.sub.2) is determined regardless of t.sub.2. Therefore, an inverse function does not exist. That is, random numbers within this range are not generated.
[0092] iv) When d≤t.sub.2:
[0093] By substituting u.sub.2∈[0,1] according to a uniform distribution U.sub.[0,1] for F(t.sub.2) of Expressions (19), (20) and (21), the random number r.sub.2=t.sub.2 according to Expressions (17) and (18) is generated. In this way, r=(r.sub.1,r.sub.2).sup.T is generated.
[0094] [Program and Recording Medium]
[0095] When each process of the random number generation apparatus is realized by a computer, processing content of functions that the random number generation apparatus should have is written by a program. By executing the program by computer, the processes of the random number generation apparatus are realized on the computer.
[0096] The program in which the processing content is written can be recorded to a computer-readable recording medium. As the computer-readable recording medium, any recording medium, for example, a magnetic recording device, an optical disk, magneto-optical recording medium or a semiconductor memory is possible.
[0097] Each processing part may be configured by causing a predetermined program to be executed on the computer, or at least a part of processing content of the processing part may be realized as hardware.
[0098] [Modification]
[0099] It goes without saying that the present invention can be appropriately modified within a range not departing from the spirit of the invention.