How Does Random Number Generation Work