2 releases

0.0.2 Jun 23, 2025
0.0.1 Jun 13, 2022

#166 in Algorithms

Download history 5428/week @ 2025-08-17 5587/week @ 2025-08-24 10089/week @ 2025-08-31 7209/week @ 2025-09-07 1348/week @ 2025-09-14 1322/week @ 2025-09-21 1097/week @ 2025-09-28 751/week @ 2025-10-05 2579/week @ 2025-10-12 18311/week @ 2025-10-19 30696/week @ 2025-10-26 49143/week @ 2025-11-02 38957/week @ 2025-11-09 21310/week @ 2025-11-16 14760/week @ 2025-11-23 15681/week @ 2025-11-30

100,150 downloads per month
Used in 12 crates (3 directly)

MIT/Apache

9KB
166 lines

rand-utf8

Random utf8 utility. This crate is #![no_std] but requires alloc.

Example

let mut rng = rand::rngs::SmallRng::seed_from_u64(0);
let my_str = rand_utf8::rand_utf8(&mut rng, 32);
assert_eq!(32, my_str.as_bytes().len());

License: MIT/Apache-2.0

Dependencies

~395KB