Jump to content
UBot Underground

Thread Spawn Randomize


Recommended Posts

I have created one bot to post on social media . I have set thread spawn and compiled it to open 5 browser at the same time for  60 times . But the 5 browser choose the same  variable on each of them  . I have made the $random list item and add list to list but every time it keeps on choosing the same one for 5 browsers . After the browser completes the job and when they reopen they choose different ones but again the 5 browser all same variable. Any ideas on how can I fix this.?

I have tried to but the "$random list item" and "add list to list" inside and outside the "in new browser" but still it doesnt work

Link to post
Share on other sites

I wouldn't use thread spawn but I did try to replicate what you said and it does randomize it for me. That being said I'd use the older way of multithreading because thread spawn has always been an issue.

clear list(%numbers)
set(#num,1,"Global")
loop(20) {
    increment(#num)
    add item to list(%numbers,#num,"Don\'t Delete","Global")
}
clear list(%rng)
thread spawn(20,5) {
    add item to list(%rng,$random list item(%numbers),"Don\'t Delete","Global")
    wait(0.1)
}
Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...