It is causing due to the looping issues you can use i<=25 and also alt.push(Math.floor(Math.random()*25)) to avoid the leading decimal values.
i<=25
alt.push(Math.floor(Math.random()*25))