Changed Math.ceil to Math.random