pub fn random_partition(total: u128, n: usize, min_per_part: u128) -> Vec<u128>Expand description
Randomly partition a total amount into n parts.
Each part will be at least min_per_part and the sum equals total.
Returns amounts aligned to SCALE_DOWN_FACTOR for clean quantization.