Skip to main content

gemini_random_generator

Gemini Random Generator is a random generator which can generate random texts, with Google Gemini AI integrated into it.

Source Code

The source code of the application Gemini Random Generator is available in Source Code.

Installation

pip install gemini_random_generator

How to Use the Application?

Pre-requisites:

  1. Python installed in your device.
  2. .env file in the same directory as <GEMINI_RANDOM_GENERATOR_DIRECTORY> and has the value of GEMINI_API_KEY.
cd <GEMINI_RANDOM_GENERATOR_DIRECTORY>
python3 gemini_random_generator.py

Note: Replace <GEMINI_RANDOM_GENERATOR_DIRECTORY> with the path to the directory of the application Gemini Random Generator.

Then, the application will start with something looking like in the screenshot below.

Application

You will then be asked to input the following values.

  1. Temperature - between 0 and 1 inclusive
  2. Top P - between 0 and 1 inclusive
  3. Top K - at least 1
  4. Max output tokens - at least 1

The following screenshot shows what is displayed after inputting the mentioned values.

File Path Input

You will be required to input the path to the .rndgen file you want to parse. Then, you will be asked to enter the path of the text file you want the randomly generated text to be placed in.

Text File Path Input

After that, the text file containing the randomly generated text will be created.

Then, you will be asked whether you want to continue using the application or not. Enter "Y" for yes. Enter anything else for no.

Continuation

Output Text File

The output text file containing randomly generated text looks like below.

Output Text File

.rndgen File

An .rndgen file is a script containing text with some variables to be replaced with random texts. Such variables are the words enclosed in ${}. Below are some screenshots of how .rndgen files look like.

Sample File 1

Sample File 2

Sample File 3

Release files for gemini-random-generator 1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for gemini-random-generator 1
File Size Uploaded
gemini_random_generator-1.tar.gz 4.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for gemini-random-generator 1
File Interpreter ABI Platform
gemini_random_generator-1-py3-none-any.whl Python 3 none any Details

Total release size: 9.5 kB

Release files / gemini_random_generator-1.tar.gz

Download URL gemini_random_generator-1.tar.gz
Size 4.5 kB
Tags Source
SHA-256 checksum
How to use checksums
bdf129a374fcc3a3dbb7df3370386333b8c05476910811e535e02a6b03431113
BLAKE2b-256 checksum
How to use checksums
22bbaf44a9df6ada14aa245e706903c5d5847eef3cc551a2d125e5b12595d987
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.31.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.4

Release files / gemini_random_generator-1-py3-none-any.whl

Download URL gemini_random_generator-1-py3-none-any.whl
Size 5.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
9fbbe0978cc02b6b3ab1c510be7a1296628fdb48ce09434e62aacd6d3609d54c
BLAKE2b-256 checksum
How to use checksums
53cfa0e5f550b94451de5618fef0ac4b6a3b56446ea7c56c7ec19e12f600106f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.31.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.4

Release history Release notifications | RSS feed

This release

1 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page