Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/markpavlenko/randomcarrot

RandomCarrot is a module for Python. If you want random letters or numbers in your Python project, just use RandomCarrot!
https://github.com/markpavlenko/randomcarrot

letters mit-license module numbers python3 pythonmodule random-generator randomizer

Last synced: 2 days ago
JSON representation

RandomCarrot is a module for Python. If you want random letters or numbers in your Python project, just use RandomCarrot!

Awesome Lists containing this project

README

        

# RandomCarrot (Carrot)

Carrot is a module for Python also known as RandomCarrot.

## Installation

Use the package manager [pip](https://pip.pypa.io/en/stable/) to install Carrot.

```bash
pip install RandomCarrot
```

## Usage

Importing is very easy in Carrot. All you need to do is type:
```Python
import RandomCarrot as carrot
```
To display random numbers type:
```Python
carrot.randomnumber()
```
To display random letters:
```Python
carrot.randomletters()
```
You can adjust length for letters by typing:
```Python
carrot(length=)
```
To display both numbers and letters:
```Python
carrot.both()
```
(again you can adjust length by typing the same text like in letters)

## Developer Usage

If you want to use developer commands, feel free to use them! Everyone can use them, even if you just want to see how do they work.
If you want to try using ``carrot.randomnumber()`` like a developer, here is the code:
```Python
carrot.random_number_generator()
```
If you want to try using ``carrot.randomletter()`` like a developer, here is the code:
```Python
carrot.random_letters_generator()
```
And if you want to use ``carrot.both`` like a developer, here is the command:
```Python
carrot.both_numbers_letters_generator()
```
Use them knowing these commands can work not as they used to. Happy coding!
## License

[MIT](https://choosealicense.com/licenses/mit/)