Python based application generates unique random number everytime