Fixed issue with random on win