new date format and random number functions