Skip to main content

randomlib (module: ramlib)

A simple random library with a Python prototype and a main C version that you can use in your projects for simple random tasks.

Overview

randomlib (module: ramlib) is a simple, independent, and deterministic library for generating pseudo-random numbers based on time.
It uses multiple layers of temporal granularity (milliseconds, microseconds, nanoseconds, and timestamp) combined with bitwise operations and dynamic multipliers.

Ideal for pseudo-randomness experiments, simulations, seed generation, and environments without complex external dependencies.

Installation

pip install ramlib-samjamsh

Usage

from ramlib import genrandom

# Get & Print a random value
start = 1
end = 10

random_value = genrandom(start, end)
print("\nRandom Value:", random_value.getnew())      # get a random value once
print()

for i in range(5):
    newrandom = random_value.generate(start, end)    # get a random value multiple times
    print("New Random:", newrandom)
print()

Metadata

Release files for ramlib-samjamsh 1.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 ramlib-samjamsh 1.1
File Size Uploaded
ramlib_samjamsh-1.1.tar.gz 5.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for ramlib-samjamsh 1.1
File Interpreter ABI Platform
ramlib_samjamsh-1.1-py3-none-any.whl Python 3 none any Details

Total release size: 11.8 kB

Release files / ramlib_samjamsh-1.1.tar.gz

Download URL ramlib_samjamsh-1.1.tar.gz
Size 5.8 kB
Tags Source
SHA-256 checksum
How to use checksums
bf7089028b2dc344211956e0f25314a83a8ae866ed456442388e8a521a1746a7
BLAKE2b-256 checksum
How to use checksums
52a6939c6d7c256a2808ac193f8582b338d863ca45b0806c29c5d086002ff4d7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.9.13

Release files / ramlib_samjamsh-1.1-py3-none-any.whl

Download URL ramlib_samjamsh-1.1-py3-none-any.whl
Size 6.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
8809d53e8db25391e8ddf711a9fdf0d11bea2328016ad3aebafd5bca9bed73a2
BLAKE2b-256 checksum
How to use checksums
d6c6c71a9d053bc541034fb66aadf8d3f2e475cb298f15bb5bb7f28c38be7b55
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.9.13

Release history Release notifications | RSS feed

This release

1.1 This release

2 release files

1.0

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