fix: random doctest
This commit is contained in:
parent
987ec7656f
commit
7c55400fbf
@ -53,6 +53,7 @@ const fn pcg64_seed(mut rng: Pcg64Random) -> Pcg64Random {
|
|||||||
/// Example (generate 10 random numbers):
|
/// Example (generate 10 random numbers):
|
||||||
///
|
///
|
||||||
///```rust
|
///```rust
|
||||||
|
/// use crate::random::random_arr_64;
|
||||||
/// const ARR: [u64; 10] = random_arr_64(123456);
|
/// const ARR: [u64; 10] = random_arr_64(123456);
|
||||||
///```
|
///```
|
||||||
pub const fn random_arr_64<const N: usize>(seed: u128) -> [u64; N] {
|
pub const fn random_arr_64<const N: usize>(seed: u128) -> [u64; N] {
|
||||||
|
Loading…
Reference in New Issue
Block a user