work on changing the agent check in time, used a ramdon number generator for testing