Looking for a simple way to generate const arrays of random numbers. There is a const_random crate that generates const random values. The code below compiles - but it's not what I want - I want a1 and a2 to be different and each have 64 different random values...
use const_random::const_random;
const fn f() -> [u64; 64] {
[const_random!(u64); 64]
}
const a1: [u64; 64] = f();
const a2: [u64; 64] = f();
fn main() {
for i in 0..64 {
println!("i: {} a1: {} a2: {}", i, a1[i], a2[i])
}
}