mode and createrandom x,y input