Skip to main content

acak — Library Random Berbahasa Indonesia

acak adalah library Python yang membungkus modul standar random dengan antarmuka berbahasa Indonesia. Dibuat agar lebih mudah dipahami oleh developer Indonesia.

Instalasi

pip install acak

Atau langsung dari GitHub:

pip install git+https://github.com/annaqibz01/acak.git

Contoh Penggunaan

from acak import acak, acak_bulat, pilih, acak_urutkan, bibit

# Float acak 0.0 - 1.0
print(acak())              # 0.374...

# Integer acak antara 1 - 10
print(acak_bulat(1, 10))   # 7

# Pilih satu elemen
print(pilih(["apel", "mangga", "jeruk"]))  # "mangga"

# Set seed (bibit)
bibit(42)
print(acak_bulat(1, 100))  # 82

Daftar Fungsi

Fungsi Padanan random Deskripsi
acak() random() Float 0.0 <= x < 1.0
acak_bulat(a, b) randint(a, b) Integer antara a dan b
acak_seragam(a, b) uniform(a, b) Float antara a dan b
pilih(urutan) choice(seq) Pilih satu elemen
pilih_banyak(urutan, jumlah) choices(seq, k=n) Pilih banyak (dengan pengembalian)
contoh(populasi, jumlah) sample(pop, k) Sample tanpa pengembalian
acak_urutkan(urutan) shuffle(seq) Acak urutan in-place
bibit(n) seed(n) Set seed

Test

python -m pytest src/acak/tests/test_acak.py -v

Lisensi

MIT © 2025 annaqibz01


Metadata

Release files for acak 0.1.0

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

Source distribution (sdist)

Source distribution for acak 0.1.0
File Size Uploaded Provenance Actions
acak-0.1.0.tar.gz 4.4 kB Without provenance Details for acak-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for acak 0.1.0
File Interpreter ABI Platform Actions
acak-0.1.0-py3-none-any.whl Python 3 none any Details for acak-0.1.0-py3-none-any.whl

Total release size: 9.9 kB

Release files / acak-0.1.0.tar.gz

Download URL acak-0.1.0.tar.gz
Size 4.4 kB
Tags Source
SHA-256 checksum
How to use checksums
80c2b379dffcbaa23dea0eeab8a1ccb7a5cd66f4fcdc6ea83e3cdbe16d02531e
BLAKE2b-256 checksum
How to use checksums
37ab2a1887120e7f358cf4a97f257dfe9ef7b38baa8407961b060b919b9e8db2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.14.5

Release files / acak-0.1.0-py3-none-any.whl

Download URL acak-0.1.0-py3-none-any.whl
Size 5.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
71dd0bbfa4b9444c6254bc421bc4e545bd25a73a90d8b64652c5b8f1265d9ce4
BLAKE2b-256 checksum
How to use checksums
d40ace96305181d432d08e83651064c7b8b0ffd792cb154cc825c099cbb8ae2e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.14.5

Security for acak 0.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files No provenance

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