Added Random number functionality