var arr = [], i = -1; while( ++i < 33 ) { arr.push( Math.random() * 33 | 0 ); } alert( arr.join( '\n' ) );