randomize function needs to exist or be replaced for live demo