im not very experienced with dialogs but i imagine u store the two times in variables and so you would use $rand(%1,%2)
but im not sure how its done it would help if i could see the code you may have to escape it
as it is likely done with a timer
or well there alot of ways it could be done it would be best if u posted the code

The Kodokan will move you, one way or another.