AngularJS - Are these dice nontransitive?

Proposition for a StackExchange - Code Golf challenge (http://codegolf.stackexchange.com/questions/44333/are-these-dice-nontransitive)

by Amaury Dalla Monta

JavaScript

var f = function(l){r=function(i){return l[i][Math.random()*6|0]};p=q=0;for(i=0;j=(i+1)%3,i<3;++i)for(k=0;k<1e5;++k){p+=(r(i)>r(j))-(r(i)<r(j));q+=(r(i)+r(i)>r(j)+r(j))-(r(i)+r(i)<r(j)+r(j))}alert((a=Math.abs)(p)>5e3?((a(q)>5e3?p*q>0?'strongly ':'Grime-':'')+'nontransitive'):'none')}

/* None */
//f([[1,2,3,4,5,6], [6,5,4,3,2,1], [1,3,5,2,4,6]]);

/* Nontransitive */
//f([[1,2,2,4,6,6], [1,2,3,5,5,5], [2,3,4,4,4,4]]);

/* Grime-nontransitive */
f([[3,3,3,3,3,6], [2,2,2,5,5,5], [1,4,4,4,4,4]]);

/* Strongly nontransitive */
//f([[2,2,2,5,5,5], [2,3,3,3,5,5], [1,1,4,5,5,5]]);