Changed Math.random with Random