[Solved] I can’t get the sum of the list [closed]
Let’s do it in parts Generate random numbers. You are generating from a = 1 to a = 49 random numbers insted of 50. If you know how many times you want to iterate, you may use the for loop. Math.random() returns a double, so you have to cast to int with (int) before it. … Read more