Fixed 2 bug length in random test