wasm-random

Crates.iowasm-random
lib.rswasm-random
version0.1.1
created_at2025-11-28 06:09:33.479753+00
updated_at2025-11-29 03:08:42.763104+00
descriptionWASM-friendly random number generation.
homepage
repositoryhttps://github.com/exquisiteOntologist/wasm-random
max_upload_size
id1954901
size9,800
(exquisiteOntologist)

documentation

README

WASM Random

Simple WebAssembly random number generator.

Why

A selection of random number libraries are available; however, few of those libraries are compatible with WASM. This library is designed to be simple and easy to use with WASM.

Compatibility

This library does not depend on any system-specific features, making it compatible with a wide range of environments including WASM (wasm32-unknown-unknown).

Usage

let random_number = wasm_random::random();
let random_number = wasm_random::random_from_range(100., 300.);

There are also ..._f64 variants of these functions (the default are f32).

Commit count: 0

cargo fmt