usability – user interface design for task randomization (online survey tool)

Let's say my tool allows you to create a remote usability test (somehow). Users need a new feature – the randomization of tasks.
When the user designs a project, he can add an inquiry, but this is not mandatory.

enter the description of the image here

If the user chooses "Random task" – YES, it must somehow associate a task with a corresponding survey to avoid a situation where the project flow will look like this:

Home -> Task 3 -> Survey 1 -> Task 2 -> Survey 3 -> Task 1 -> Survey 3 -> End

Do you have an idea of ​​how to design such an interaction?