Run as Command

randog can be used as a command. The basic command format is as follows:

randog <MODE> ...

Specify MODE according to the values you want to generate, and specify further arguments to specify more detailed conditions.

Modes

The following modes are available for command execution. Arguments and options available for each mode are described on the detail page for each mode.

mode

value type

command example

output example

detail

bool

bool

randog bool

True

detail

int

int

randog int -100 100

42

detail

float

float

randog float -10 10

2.826684165562185

detail

str

str

randog str

XTGh3VH1

detail

bytes

bytes

randog bytes

binary data

detail

decimal

Decimal

randog decimal -10 10 --decimal-len 2

3.91

detail

datetime

datetime

randog datetime 2022-01-01 2023-01-01

2022-03-20 12:43:51.110244

detail

date

date

randog date 2022-01-01 2023-01-01

2022-03-20

detail

time

time

randog time

12:43:51.110244

detail

timedelta

timedelta

randog timedelta

17h

detail

ipv4

IPv4Address

randog ipv4

192.0.2.71

detail

dice

int

randog dice 2d6

9

detail

byfile

according to
the definition file

randog byfile ./factory_def.py

according to
./factory_def.py

detail

Arguments and Options

For mode-specific arguments and options, see the detailed page for each mode.

Several options can be used in any mode; see also:

Details of Modes