Moved random indicies algorithm to use a LCG