sS randomNGram(int n, S s) { if (l(s) < n) null; int i = random(l(s)-n+1); ret substring(s, i, i+n); }