added random generator and comparable to SHIP ID. only. for asgn 4
purpose