# US 2021/0286593 A1 · Random number generation apparatus, method and program

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2021/0286593 A1
- Document ID: US20210286593A1
- Status: Published application
- Kind: A1
- Application number: 16/476,728
- Filed: 2018-01-12
- Published: 2021-09-16
- Earliest claimed: 2017-01-19
- Assignees: Nippon Telegraph and Telephone Corporation
- Applicants: Nippon Telegraph and Telephone Corporation
- Inventors: Rina OKADA; Satoshi HASEGAWA; Shogo MASAKI
- Web page: https://patentgrep.com/patent/US20210286593A1

## CPC

- G06F 7/58: Random or pseudo-random number generators
- G06F 7/586: {using an integer algorithm, e.g. using linear congruential method}
- G06F 17/18: for evaluating statistical data {, e.g. average values, frequency distributions, probability functions, regression analysis (forecasting specially adapted for a specific administrative, business or logistic context G06Q10/04)}
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

A random number generation apparatus comprises: a first random number generating part 2 generating a random number u=(u1, . . . ,uD)T∈[−∞,∞]D; a second random number generating part 3 generating a random number v∈[0,f′max]; and a determining part 4 determining whether f′(x1=u1, . . . ,xD=uD)≥v or not, and, if f′(x1=u1, . . . ,xD=uD)≥v, adopting u as a random number according to f′(x1, . . . ,xD), wherein D is a predetermined positive integer, for i=1, . . . ,D, [hi] is a predetermined possible range for a random variable xi, a hole [h] is [h]=([h1], . . . ,[hD])T, H is a probability of a predetermined basic distribution function f(x1, . . . ,xD) in the hole [h], α=1/(1−H), a corrected distribution function f′(x1, . . . ,xD) is defined by Expressions (1) and (2), and f′max is a maximum value of f′(x1, . . . ,xD).

## Claims

### Claim 1

A random number generation apparatus, comprising:
a first random number generating part generating a random number u=(u1, . . . ,uD)T∈[−∞,∞]D;
a second random number generating part generating a random number v∈[0,f′max]; and
a determining part determining whether f′(x1=u1, . . . ,xD=uD)≥v or not, and, if f′(x1=u1, . . . ,xD=uD)≥v, adopting u as a random number according to f′(x1, . . . ,xD), wherein
D is a predetermined positive integer, for i=1, . . . ,D, [hi] is a predetermined possible range for a random variable xi, a hole [h] is [h]=([h1], . . . ,[hD])T, H is a probability of a predetermined basic distribution function f(x1, . . . ,xD) in the hole [h], α=1/(1−H), a corrected distribution function f′(x1, . . . ,xD) is defined by Expressions (1) and (2):
[Formula 29]
H=∫x1∈[h1]. . . ∫xD∈[hD]f(x1, . . . ,xD)dx1 . . . dxD
f′(x1, . . . ,xD)=0 if x1∈[h1]∧ . . . ∧xD∈[hD] (1)
f′(x1, . . . ,xD)=α·f(x1, . . . ,xD) otherwise (2)
and f′fax is a maximum value of f′(x1, . . . ,xD).

### Claim 2

A random number generation apparatus comprising:
an arithmetic operation part obtaining r=(r1, . . . ,rD)T in the end, by performing, for each of i=1, . . . ,D, a process for generating a random number ui∈[0,1], obtaining a random number ri=F−1(ui) according to f′(xi) using the generated and xi=ri, wherein
D is a predetermined positive integer, for i=1, . . . ,D, [hi] is a predetermined possible range for a random variable xi, a hole [h] is [h]=([h1], . . . ,[hD])T, H is a probability of a predetermined basic distribution function f(x1, . . . ,xD) in the hole [h], α=1/(1−H), a corrected distribution function f′(x1, . . . ,xD) is defined by Expressions (1) and (2):
[Formula 30]
H=∫x1∈[h1]. . . ∫xD∈[hD]f(x1, . . . ,xD)dx1 . . . dxD
f′(x1, . . . ,xD)=0 if x1∈[h1]∧ . . . ∧xD∈[hD] (1)
f′(x1, . . . ,xD)=α·f(x1, . . . ,xD) otherwise (2)
f′(xi) is a peripheral distribution of f′(x1, . . . ,xD) of xi, F(ti) is a function defined by Expression (2′):
[Formula 31]
f′(xi)=∫−∞∞ . . . ∫−∞∞f′(x1, . . . ,xD)dx1 . . . dxi−1dxi+1 . . . dxD
F(ti)=∫−∞tif′(xi)dxi (2′)
and F−1(ti) is an inverse function of F(ti).

### Claim 3 (depends on 1, 2)

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 [hi] for the random variable xi, the N predetermined possible ranges are {[hi]}i=1N{([h1]i,[h2]i)T}i=1N={([(s1)i,(e1)i],[(s2)i,(e2)i])T}i=1N, (μx1,2σx12),(μx2,2σx22) are predetermined parameters, the basic distribution function f(x1, . . . ,xD) is Lap(x1,x2) 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′(x1,x2) defined by Expressions (7) and (8):
⁢
[
Formula
⁢
⁢
32
]
⁢
Lap
⁡
(
x
1
,
x
2
)
=
1
2
⁢
σ
x
1
⁢
exp
⁡
(
-

x
1
-
μ
x
1

σ
x
1
)
⁢
1
2
⁢
σ
x
2
⁢
exp
⁡
(
-

x
2
-
μ
x
2

σ
x
2
)
(
3
)
⁢
[
Formula
⁢
⁢
33
]
⁢
H
=
⁢
∑
i
=
1
N
⁢
{
∫
[
h
2
]
i
⁢
∫
[
h
1
]
i
⁢
L
⁢
a
⁢
p
⁡
(
x
1
,
x
2
)
⁢
d
⁢
x
1
⁢
d
⁢
x
2
}
=
⁢
1
4
⁢
∑
i
=
0
N
⁢
{
g
⁡
(
(
s
1
)
i
,
(
e
1
)
i
)
⁢
g
⁡
(
(
s
2
)
i
,
(
e
2
)
i
)
}
(
4
)
⁢
[
Formula
⁢
⁢
34
]
g
⁡
(
s
,
e
)
=
2
-
exp
⁡
(
s
-
μ
x
1
σ
x
1
)
-
exp
⁡
(
-
e
+
μ
x
1
σ
x
1
)
⁢
⁢
if
⁢
⁢
s
≤
μ
x
1
⋀
μ
x
1
≤
e
(
5
)
g
⁡
(
s
,
e
)
=
sign
⁢
⁢
(
e
-
μ
x
1
)
⁢
exp
⁡
(
-

e
-
μ
x
1

σ
x
1
)
-
sign
⁢
⁢
(
s
-
μ
x
1
)
⁢
exp
⁡
(
-

s
-
μ
x
1

σ
x
1
)
⁢
⁢
otherwise
(
6
)
⁢
[
Formula
⁢
⁢
35
]
⁢
Lap
'
⁡
(
x
1
,
x
2
)
=
0
⁢
⁢
if
⁢
⁢
x
1
∈
[
h
1
]
i
⋀
⋯
⁢
⋀
x
D
∈
[
h
D
]
i
⁢
❘
∃
i
(
7
)
Lap
'
⁡
(
x
1
,
x
2
)
=
α
4
⁢
σ
x
1
⁢
σ
x
2
⁢
exp
⁡
(
-

x
1
-
μ
x
1

σ
x
1
)
⁢
exp
⁡
(
-

x
2
-
μ
x
2

σ
x
2
)
⁢
⁢
otherwise
.
(
8
)

### Claim 4 (depends on 2)

The random number generation apparatus according to claim 2, wherein
when D=2, the predetermined possible range [hi] for the random variable xi is [hi]=([h1]i,[h2]i)T=([a,b],[c,d])T, (μx1,2σx12) and (μx2,2σx22) are predetermined parameters, a first area S1 is (x1≥μx1)∧(x2≥μx2), a second area S2 is (x1≤μx1)∧(x2≥μx2), a third area S3 is (x1≥μx1)∧(x2≤μx2) and a fourth area S4 is (x1≤μx1)∧(x2≤μx2), if the hole [h] is in the first area S1 or the second area S2, the corrected distribution function f′ is Lap′(x1) defined by Expressions (9) and (10), and if the hole [h] is in the third area S3 or the fourth area S4, the corrected distribution function f′ is Lap′(x1) defined by Expressions (11) and (12):
⁢
[
Formula
⁢
⁢
36
]
La
⁢
p
'
⁡
(
x
1
)
=
α
4
⁢
σ
x
1
⁢
exp
⁡
(
-

x
1
-
μ
x
1

σ
x
1
)
⁢
(
2
-
exp
⁡
(
-
c
+
μ
x
2
σ
x
2
)
+
exp
⁡
(
-
d
+
μ
x
2
σ
x
2
)
)
⁢
⁢
if
⁢
⁢
a
≤
x
1
≤
b
(
9
)
⁢
Lap
'
⁡
(
x
1
)
=
α
2
⁢
σ
x
1
⁢
exp
⁡
(
-

x
1
-
μ
x
1

σ
x
1
)
⁢
⁢
otherwise
(
10
)
La
⁢
p
'
⁡
(
x
1
)
=
α
4
⁢
σ
x
1
⁢
exp
⁡
(
-

x
1
-
μ
x
1

σ
x
1
)
⁢
(
2
+
exp
⁡
(
c
-
μ
x
2
σ
x
2
)
-
exp
⁡
(
d
-
μ
x
2
σ
x
2
)
)
⁢
⁢
if
⁢
⁢
a
≤
x
1
≤
b
(
11
)
⁢
Lap
'
⁡
(
x
1
)
=
α
2
⁢
σ
x
i
⁢
exp
⁡
(
-

x
1
-
μ
x
1

σ
x
1
)
⁢
⁢
otherwise
.
(
12
)

### Claim 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=(u1, . . . ,uD)T∈[−∞,∞]D;
a second random number generating step of a second random number generating part generating a random number v∈[0,f′max]; and
a determining step of a determining part determining whether f′(x1=u1, . . . ,xD=uD)≥v or not, and, if f′(x1=u1, . . . ,xD=uD)≥v, adopting u as a random number according to f′(x1, . . . ,xD), wherein
D is a predetermined positive integer, for i=1, . . . ,D, [hi] is a predetermined possible range for a random variable x a hole [h] is [h]=([h1], . . . ,[hD])T, H is a probability of a predetermined basic distribution function f(x1, . . . ,xD) in the hole [h], α=1/(1−H), a corrected distribution function f′(x1, . . . ,xD) is defined by Expressions (1) and (2):
[Formula 37]
H=∫x1∈[h1]. . . ∫xD∈[hD]f(x1, . . . ,xD)dx1 . . . dxD
f′(x1, . . . ,xD)=0 if x1∈[h1]∧ . . . ∧xD∈[hD] (1)
f′(x1, . . . ,xD)=α·f(x1, . . . ,xD) otherwise (2)
and f′max is a maximum value of f′(x1, . . . ,xD).

### Claim 6

A random number generation method, comprising:
an arithmetic operation step of an arithmetic operation part obtaining r=(r1, . . . ,rD)T in the end, by performing, for each of i=1, . . . ,D, a process for generating a random number ui∈[0,1], obtaining a random number ri=F−1(ui) according to f′(xi) using the generated and xi=ri, wherein
D is a predetermined positive integer, for i=1, . . . ,D, [hi] is a predetermined possible range for a random variable xi, a hole [h] is [h]([h1], . . . ,[hD])T, H is a probability of a predetermined basic distribution function f(x1, . . . ,xD) in the hole [h], α=1/(1−H), a corrected distribution function f′(x1, . . . ,xD) is defined by Expressions (1) and (2):
[Formula 38]
H=∫x1∈[h1]. . . ∫xD∈[hD]f(x1, . . . ,xD)dx1 . . . dxD
f′(x1, . . . ,xD)=0 if x1∈[h1]∧ . . . ∧xD∈[hD] (1)
f′(x1, . . . ,xD)=α·f(x1, . . . ,xD) otherwise (2)
f′(xi) is a peripheral distribution of f′(x1, . . . ,xD) of xi, F(ti) is a function defined by Expression (2′):
[Formula 39]
f′(xi)=∫−∞∞ . . . ∫−∞∞f′(x1, . . . ,xD)dx1 . . . dxi−1dxi+1 . . . dxD
F(ti)=∫−∞tif′(xi)dxi (2′)
and F−1(ti) is an inverse function of F(ti).

### Claim 7 (depends on 1)

A program for causing a computer to function as each part of the random number generation apparatus according to claim 1.
