initialize rand with current time