How to make round robin pattern using Deluge?

How to make round robin pattern using Deluge?

I want to change lead owner to another user when Lead Status is updated. as far as I know, I can’t use Assignment rules if the record has already created.


so I think I will use custom function (Deluge) that can be triggered in Workflow rules. but the problem is I have three users and I need to change the lead owner to one of three users using round robin pattern.


is there a way or a workaround to make round robin pattern using Deluge? or at least the idea