fix random for accident generator