pub fn generate_random_allocation( rng: &mut impl Rng, size: usize, range: Range<u8>, ) -> CUAllocation