Dialog box, Random number generator, and method calling.