public class Rand extends Object
| Constructor and Description |
|---|
Rand() |
| Modifier and Type | Method and Description |
|---|---|
static double |
nd()
Generates a normal random double.
|
static double[] |
ndary(int n)
Generates a one-dimensional array of
normal random doubles.
|
static double[][] |
ndary(int m,
int n)
Generates a two-dimensional array of
normal random doubles.
|
static Z |
nz()
Generates a normal random complex number, i.e., a complex
number whose real and imaginary parts are random.
|
static Z1 |
nz1(int n)
Generates a normal random Z1.
|
static Zmat |
nzmat(int m,
int n)
Generates a normal random Zmat.
|
static void |
setSeed(long seed)
Sets the seed for the random number generator.
|
static double |
ud()
Generates a random uniform double.
|
static double[] |
udary(int n)
Generates a one-dimensional array of
uniform random doubles.
|
static double[][] |
udary(int m,
int n)
Generates a two-dimensional array of
uniform random doubles.
|
static Z |
uz()
Generates a uniform random complex number, i.e., a complex
number whose real and imaginary parts are random.
|
static Z1 |
uz1(int n)
Generates a uniform random Z1.
|
static Zmat |
uzmat(int m,
int n)
Generates a uniform random Zmat.
|
public static void setSeed(long seed)
seed - The seedpublic static double ud()
public static double[] udary(int n)
n - The length of the array.public static double[][] udary(int m,
int n)
m - The number of rows in the array.n - The number of columns in the array.public static Z uz()
public static Z1 uz1(int n) throws JampackException
n - The length of the Z1JampackException - Passed from below.public static Zmat uzmat(int m, int n) throws JampackException
m - The number of rows in the Zmatn - The number of columns in the ZmatJampackException - Passed from below.public static double nd()
public static double[] ndary(int n)
n - The length of the array.public static double[][] ndary(int m,
int n)
m - The number of rows in the array.n - The number of columns in the array.public static Z nz()
public static Z1 nz1(int n) throws JampackException
n - The length of the Z1JampackException - Passed from below.public static Zmat nzmat(int m, int n) throws JampackException
m - The number of rows in the Zmatn - The number of columns in the ZmatJampackException - Passed from below.Copyright © 2015. All rights reserved.