<s> import time <EOL> import random <EOL> from SimpleXMLRPCServer import SimpleXMLRPCServer <EOL> import xmlrpclib <EOL> def get_time ( ) : <EOL> time . sleep ( random . random ( ) ) <EOL> return time . time ( ) <EOL> def get_random_number ( low , high ) : <EOL> time . sleep ( random . random ( ) ) <EOL> return random . randint ( low , high ) <EOL> server = SimpleXMLRPCServer ( ( "<STR_LIT:localhost>" , <NUM_LIT> ) ) <EOL> print "<STR_LIT>" <EOL> server . register_function ( get_time , "<STR_LIT>" ) <EOL> server . register_function ( get_random_number , "<STR_LIT>" ) <EOL> server . serve_forever ( ) </s>
