about summary refs log tree commit diff
path: root/library/std/src/random.rs
AgeCommit message (Collapse)AuthorLines
2025-07-11random: Provide a `Distribution<T>` traitJosh Triplett-17/+7
This will let people make calls like random(1..=6), and allows for future expansion to non-uniform distributions, as well as floating-point. For now, this is only implemented for `RangeFull`, to get the interface in place. Subsequent commits will implement it for other range types.
2025-03-10Unify cygwin & horizon random impl王宇逸-1/+1
2024-10-22AIX use /dev/urandom for implHenry Jiang-1/+1
2024-10-18Add entropy source for RTEMSJan Sommer-0/+1
2024-09-25add link from random() helper fn to extensive DefaultRandomSource docsRalf Jung-1/+2
2024-09-23random: add tracking issue, address other commentsjoboet-10/+15
2024-09-23std: switch to faster random sources on macOS and most BSDsjoboet-16/+15
2024-09-23std: implement the `random` featurejoboet-0/+100
Implements the ACP https://github.com/rust-lang/libs-team/issues/393.