In this battle simulator I have worked with randomizing image arrays and attaching name ids to the specific images within the array. Math.floor was essential for keeping the images developing within the array numbers. randomNum was the variable used as the randomizer. myFn was used to link the javascript to the html elements.