NAME

saikoro

VERSION

0.24 (2018-07-10)

SYNOPSIS

saikoro [-g N1[,N2]] [-y N3[..N4]] # N1, N2, N3 and N4 are all numbers.

DESCRIPTION

A random number(matrix) generator from uniform distributions. Generates random uniform variable. Discrete/uniform can be specified.

OPTION

-g N1

Get N1 random variables. N1 is a positive interger.

-g N1,N2

Get N1 times N2 variables. N1 for vertical, N2 for horizontal. The form "-g N1xN2" is allowed.

-~

The number specifications N1 and N2 are reversed, so N1 for horizontal, N2 for vertical.

-y N3,N4

Limit the values into the number interval [N3,N4]. The form "-y N3..N4" is also allowed.

-y N3

Similar to -y 1..N3. When -. N is simultaneously set, similar to -y 0..N3.

-. N

N digits after decimal points by rounding(, switching from merely discrete integers to continuous). If N=0, the outputs are integers.

-2 0

Switch to no secondary information that would be output to STDOUT.

-s N

Random seed specification. Essentially the residual divided by 2**32 is used.

-i char

Specifies the horizontal separator character.

--help

Print this online help manual of this command "saikoro". Similar to "perldoc `which [-t] saikoro` ".

--help opt

Only shows the option helps. It is easy to read when you are in very necessary.

--help ja

Shows Japanese online help manual.

--help nopod

Print this online manual using the code insdide this program without using the function of Perl POD.

--version

Outputs version information of this program.

EXAMPLES

saikoro

# Outputs 12 random numbers from {1,2,3,4,5,6} horizontally.

saikoro -~

# Outputs 12 random numbers from {1,2,3,4,5,6} vertically.

saikoro -g 5,8

# 5 x 8 matrix whose elements are from {1,2,..,6}.

saikoro -g 5,8 -y 0,100

# 5 x 8 matrix whose elements are from {0, 1, 2,..,100}.

saikoro -g 5,8 -. 3

# Continuous random variables with 3 digits after decimal points.

AUTHOR

Toshiyuki Shimono bin4tsv@gmail.com

HISTORY

This program has been made since 2016-03-04 (Fri) as a part of TSV hacking toolset for table data.