Random number creation and Validation functioning