avx-rand 0.1.0

Gerador de números aleatórios nativo - substitui rand
Documentation
  • Coverage
  • 7.69%
    1 out of 13 items documented0 out of 12 items with examples
  • Size
  • Source code size: 7.38 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 1.64 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Links
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • avilaops

avx-rand

Native random number generator for the avx ecosystem - replacement for rand.

Crates.io Documentation License

Features

  • Xoshiro256** algorithm for high-quality randomness
  • Thread-local RNG for thread safety
  • Zero dependencies
  • Fast and cryptographically secure

Quick Start

use avx_rand::{random, random_range};

// Generate random u64
let num: u64 = random();

// Generate random in range
let num = random_range(1..=100);

// Generate random bytes
let mut bytes = [0u8; 32];
fill_bytes(&mut bytes);