added rand-function for car instance