This project provides a tools for getting various format or kind Random Value.
How to Install
$ pip install RandomGetter
or
$ git clone https://github.com/RandomGetter $ cd RandomGetter $ python install setup.py
Usage
$ random_getter.py [option]
Note that no arguments are required.
For example,
$ random_getter.py -f "([double], [str])" (-690.8986415091822, _m_c) $ random_getter.py -f "([int-10:10], [double:3])" (0, -5363.877296867747) $ random_getter.py -1603
Options
In default, length of random values is 4 and type of random values is int.
This means that in default, this program occurs int object such that -10**4 < random number < 10**4.
–int: occur int random value
–str: occur str random value
–double: occur double random value
-n, –number: indicate number of random values
-l, –length: indicate length of random values
–min: indicate default minimal value
–max: indicate default maximal value
–min-int: indicate minimal value of random int values
–max-int: indicate maximal value of random int values
–min-double: indicate minimal value of random double values
–max-double: indicate maximal value of random double values
-f, –format: indicate format of occured random values
Format
$ random_getter.py -f "([int], [double])" (568, 5079.63840808) $ random_getter.py -f "[int1000]" 2288 $ random_getter.py -f "[int:0]" -2656 $ random_getter.py -f "[int-100:100]" 45
Format is a string which embed “format-element”.
“format-element” is one of following style:
[{type}]: random {type} value
[{type}{min}]: random {type} value more than or equal to {min}
[{type}:{max}]: random {type} value less than or equal to {max}
[{type}{min}:{max}]: random {type} value less than or equal to {max} and more than or equal to {min}
License
Apache License 2.0
Metadata
Release files for RandomGetter 0.0.8
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| RandomGetter-0.0.8.tar.gz | 4.2 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| RandomGetter-0.0.8-py2.py3-none-any.whl | Python 2, Python 3 | none | any | Details |
Total release size: 13.1 kB
Release files / RandomGetter-0.0.8.tar.gz
| Download URL | RandomGetter-0.0.8.tar.gz |
|---|---|
| Size | 4.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e77a73150d8aca86499bdae70f92af100f258c9673f6e7adba62254c8f66cfac
|
|
BLAKE2b-256 checksum How to use checksums |
fe4c962d19eacd2d63f2972998403ff8a3e54cb4057fc14cb393021d51767d39
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / RandomGetter-0.0.8-py2.py3-none-any.whl
| Download URL | RandomGetter-0.0.8-py2.py3-none-any.whl |
|---|---|
| Size | 8.9 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
2b142f9a8959cfaa28ffea35117e1e23eec91d389a9823f0ae787b517777850e
|
|
BLAKE2b-256 checksum How to use checksums |
cc7f1386cd4ea9a74a287fb8c5d2f44eee8cb6ede667fa99d0738c84441e54b5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |