compile-rand

Crates.iocompile-rand
lib.rscompile-rand
version1.0.0
created_at2025-03-28 21:49:01.82365+00
updated_at2025-03-28 21:49:01.82365+00
descriptionCompile-time random integers
homepage
repositoryhttps://github.com/lukesneeringer/compile-rand
max_upload_size
id1610543
size9,357
Luke Sneeringer (lukesneeringer)

documentation

https://docs.rs/compile_rand/

README

compile-rand

This crate provides the compile_rand! macro, which will generate a random number of the given integer type at compile time.

In other words, if – for whatever reason – you actually need this:

https://xkcd.com/221/

...then this crate will give it to you!

Commit count: 3

cargo fmt