moved initializing random numbers before creating UUIDs