select = mremaining = nfor i = 0 to n-1 if (bigrand() % remaining) < select print i select-- remaining--