genome 0.3.0

A simple package used to generate DNA used for GAN generator
Documentation
use rand::prelude::*;

pub enum MutationType {
    DELETE,
    REVERSAL,
    DUPLICATION,
    SHIFT,
    NEW,
}

pub fn get_mutation_type() -> MutationType {
    match thread_rng().gen_range(0, 5) {
        0 => MutationType::DELETE,
        1 => MutationType::REVERSAL,
        2 => MutationType::DUPLICATION,
        3 => MutationType::SHIFT,
        4 => MutationType::NEW,
        _ => panic!("Not suppose to reach here"),
    }
}