everything works now
adding more functions to the mix
changed function name to integer instead of random