How to randomly reject a part on a process Node?

I am trying to reject a part randomly 1 in 72 parts that arrive at a process node and send them on a return conveyor instead of the main line.

The process node basically acts like a test bench where there is a chance that 1 in every 72 parts will be rejected.

How do I simulate this?

Please help. Thanks in advance :slight_smile:

You can use a distribution expression in e.g. If or Assign statement.

Hi Tsy,

thanks for the quick reply

I donโ€™t seem to understand what distribution I should use here. Like how do there is a yes or no chance that 1 in 72 parts will be rejected? Not every 72nd part should be removed.

And how do I put the value of this distribution in the if statement?

Iโ€™m really confused, your help would be much appreciated :slight_smile:


CONSTANT DISTRIBUTION

@TSy Could you please help me out with this

Thanks :slight_smile:

You can use the expression random stream functions. These are shown in the help file under Reference Guide.

Indeed, but note that the help file has wrong syntax for these functions. The uniform() function takes 3 parameters and I think the first one is the random stream to use.

So I would use it like this (as part of a process):
image

Processes in this executor are not spending any simulation time, causing the simulation to get stuck. Stopping the executor. :eyes: