Added randoms function for rb