formatting and added the getRandom() Method, no more memorizing floor(... + 0.5)