question

Zhang Z3 avatar image
0 Likes"
Zhang Z3 asked tannerp commented

How to use Mergesort to output with probability

How to use sorting conveyor belt to output with probability? Output items with a certain probability ,行李转盘2.fsmPlease help me;

Choose One
mergesort
3.png (113.7 KiB)
行李转盘2.fsm (58.6 KiB)
· 1
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

tannerp avatar image tannerp commented ·

Hi @Zhang Z3, was Braydn T's answer helpful? If so, please click the red "Accept" button on their answer. Otherwise, feel free to comment back with additional information so we can help. Thanks!

0 Likes 0 ·

1 Answer

·
Braydn T avatar image
1 Like"
Braydn T answered

Hi @Zhang Z3

What do you mean by certain probability? Typically what we do in this case is assign a label to all flowitems with a random value based on the distribution you want, and then based on that label we can choose to out put those items. I am not sure what you mean by mergesort.

5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.