semx_rand 0.1.59

xoshiro256++ 伪随机数生成器
Documentation
# semx_rand

[![crates.io](https://img.shields.io/crates/v/semx_rand.svg)](https://crates.io/crates/semx_rand)
[![docs.rs](https://docs.rs/semx_rand/badge.svg)](https://docs.rs/semx_rand)

xoshiro256++ 伪随机数生成器,通过 BigCrush 统计测试套件,周期 2²⁵⁶-1。

`#![no_std]`、零依赖,可在裸机 / 嵌入式 / 内核 / 用户态场景直接使用。

## 功能

- **`rand64()`** — 生成 64 位伪随机数
- **`rand32()`** — 生成 32 位伪随机数
- **`rand_range(bound)`** — 生成 `[0, bound)` 范围内的随机数
- **`srand(seed)`** — 用 64 位种子初始化(通过 `SplitMix64` 扩展为 256 位状态)

## 用法

```rust
use semx_rand::{srand, rand64, rand_range};

srand(12345);
let value = rand64();
let dice = rand_range(6) + 1;
```