Adding random and crusie function