moved random_int function to new file in peripherals