the correction of an error that srand() was called every time instead of once only at first call.