public static TapeDrive generateRandomTape(int capacity) {
        // TODO: Implement me for 10 points
    	Random random = new Random();
    	TapeDrive tapeDrive = new TapeDrive(capacity);
    	tapeDrive.reset();
    	for(int i = 0; i < capacity; ++i) {
    		tapeDrive.write(random.nextInt());
    	}
    	tapeDrive.reset();
        return tapeDrive;
    }