Changes to be committed: modified to add random object selection