fn random_value(max :i32 , min :i32) -> i16 {

    let mut rng = thread_rng();

    //the smallest value will always be used as the min. 
    if max < min {
        let y :i16 = rng.gen_range(max, min) as i16;
        return y;

    }
    
    let y :i16 = rng.gen_range(min,max) as i16;
    return y;
}
/*
Random Value 
this function will generate a random int between 0 and 255 for the RGB values

args:
    - max (i32) -> maximum value
    - min (i32) -> minimum value

returns:
    - i32 -> a positive int between 0 and 255

*/
Random Value
this function will generate a random int between 0 and 255 for the RGB values

max (i32) -> maximum value
min (i32) -> minimum value

> a positive int between 0 and 255
Random Value this function will generate a random int between 0 and 255 for the RGB values max ( i32 ) - > maximum value min ( i32 ) - > minimum value > a positive int between 0 and 255
fn random_value(max :i32 , min :i32) -> i16 {
    let mut rng = thread_rng();
    //the smallest value will always be used as the min. 
    if max < min {
        let y :i16 = rng.gen_range(max, min) as i16;
        return y;
    }
    let y :i16 = rng.gen_range(min,max) as i16;
    return y;
}
fn random_value ( max : i32 , min : i32 ) -> i16 { let mut rng = thread_rng ( ) ; //the smallest value will always be used as the min.  if max < min { let y : i16 = rng . gen_range ( max , min ) as i16 ; return y ; } let y : i16 = rng . gen_range ( min , max ) as i16 ; return y ; }
Random Value
this function will generate a random int between 0 and 255 for the RGB values
Random Value this function will generate a random int between 0 and 255 for the RGB values
max
i32
min
i32
max
i32
min
i32