Added functionality getting a random job

Close #4