Added method for randomServer.  Refactored variables