Both spellings are correct. Randomize is more used in American English and randomise is used more in British English.