Comment detail

ビンゴの結果を整形表示 (Nested Flatten)

This comment is reply for 2323 matyr: ブラウザとCScriptに対応。(ビンゴの結果を整形表示). Go to thread root.

ブックマークレット版: javascript:(function(n,w,a,b,r,l,i,$){for(a=[],l=('_'+n).length,i=0;i<n;a.push(++i));for(b=a.concat();n;$=b[i=Math.random()*n--|0],b[i]=b[n],b[n]=$);for(r=[];a.length;r.push(a.splice(0,w).join(' ')+'\n'+b.splice(0,w).join(' ')));return'<pre>'+r.join('\n\n').replace(/ *\d+/g,function($){while($.length<l)$=' '+$;return $})+'</pre>'})(35,10)

Index

Feed

Other

Link

Pathtraq

loading...