fn double_lottery<R: Rng>(
    stage1: BTreeMap<CommunityAdvisor, u64>,
    stage2: BTreeMap<CommunityAdvisor, u64>,
    distribute_first_round: u64,
    distribute_second_round: u64,
    rng: &mut R
) -> BTreeMap<CommunityAdvisor, u64>