Try asking here>http://www.annaunivedu.info/2012/06/get-tnea-2012-random-number-for.html
This is a Simple Dialog Demo.