my problem is this: I need to create some random values ββfor planning. For example, process time is given. Assume that job j on a machine gets a random value between (1.99). this is the time required to operate this machine.
Now I need to manipulate these random values. I like to talk about all the random times of the process, 20% of which are zero processes. So does anyone know how to give an array with integers of a certain amount with a specific time?
here's the normal random:
p_machine_job_completionTime = new int[Constants.numberMachines][];
for (i = 0; i < Constants.numberMachines; i++)
{
p_machine_job_completionTime[i] = new int[Constants.numberJobs];
for (j = 0; j < Constants.numberJobs; j++)
{
p_machine_job_completionTime[i][j] = random.Next(1, 99);
}
}
Now the jobs can skip the machine and therefore have a processing time of 0. Is it possible to limit random values, ensuring that x% of all my random values ββhave a value of 0 ?? eg:
20% of p_machine_job_completionTime[i][j] = 0
80% of p_machine_job_completionTIme[i][j] = random (1,99)
.