Jump to content
UBot Underground

Random spinning?


Recommended Posts

Don't think so. Restart UBOT and you will get the same sequence of results everytime - see:

 

clear list(%test)
loop(10) {
    set(#plz$spin("\{01*|02*|03*|04*|05*|06*|07*|08*|09*|10*|11*|12*|13*|14*|15*|16*|17*|18*|19*|20*|21*|22*|23*|24*|25*|26*|27*|28*|29*|30*|31*|32*|33*|34*|35*|36*|37*|38*|39*|40*|41*|42*|43*|44*|45*|46*|47*|48*|49*|50*|51*|52*|53*|54*|55*|56*|57*|58*|59*|60*|61*|62*|63*|64*|65*|66*|67*|68*|69*|70*|71*|72*|73*|74*|75*|76*|77*|78*|79*|80*|81*|82*|83*|84*|85*|86*|87*|88*|89*|90*|91*|92*|93*|94*|95*|96*|97*|98*|99*\}"), "Global")
    add item to list(%test#plz"Delete""Global")
}
load html(%test)

 

In my case it's:    81* 14* 90* 83* 13* 96* 91* 22* 63* 31*

 

(Actually you don't have to restart UBOT ... just unload and reload BOT-Script)

Edited by Hagen
Link to post
Share on other sites

No ... sorry ... thought this would work ... but same problem ... everytime you restart UBOT:

 

clear list(%tttest)
add list to list(%setplz$list from text("01*,02*,03*,04*,05*,06*,07*,08*,09*,10*,11*,12*,13*,14*,15*,16*,17*,18*,19*,20*,21*,22*,23*,24*,25*,26*,27*,28*,29*,30*,31*,32*,33*,34*,35*,36*,37*,38*,39*,40*,41*,42*,43*,44*,45*,46*,47*,48*,49*,50*,51*,52*,53*,54*,55*,56*,57*,58*,59*,60*,61*,62*,63*,64*,65*,66*,67*,68*,69*,70*,71*,72*,73*,74*,75*,76*,77*,78*,79*,80*,81*,82*,83*,84*,85*,86*,87*,88*,89*,90*,91*,92*,93*,94*,95*,96*,97*,98*,99*"","), "Delete""Global")
loop(100) {
    add item to list(%tttest$random list item(%setplz), "Delete""Global")
}
load html(%tttest)

 

Same Result after RESTART:

81* 14* 90* 83* 13* 96* 91* 22* 63* 31* 10* 55* 28* 19* 99* 95* 16* 72* 97* 98* 11* 49* 80* 30* 15* 01* 42* 12* 64* 79* 87* 50* 65* 04* 36* 85* 21* 93* 68* 40* 76* 74* 48* 39* 18* 17* 70* 32* 05* 82* 69* 66* 44* 38* 06* 41* 46* 45* 71* 92* 75*

Edited by Hagen
Link to post
Share on other sites

OK ... seems like every random-function ist affected - same problem with a variation like this:

 

clear list(%tttest)
add list to list(%setplz$list from text("01*,02*,03*,04*,05*,06*,07*,08*,09*,10*,11*,12*,13*,14*,15*,16*,17*,18*,19*,20*,21*,22*,23*,24*,25*,26*,27*,28*,29*,30*,31*,32*,33*,34*,35*,36*,37*,38*,39*,40*,41*,42*,43*,44*,45*,46*,47*,48*,49*,50*,51*,52*,53*,54*,55*,56*,57*,58*,59*,60*,61*,62*,63*,64*,65*,66*,67*,68*,69*,70*,71*,72*,73*,74*,75*,76*,77*,78*,79*,80*,81*,82*,83*,84*,85*,86*,87*,88*,89*,90*,91*,92*,93*,94*,95*,96*,97*,98*,99*"","), "Delete""Global")
loop(100) {
    set(#hsrnd$rand(0, 98), "Global")
    add item to list(%tttest$list item(%setplz#hsrnd), "Delete""Global")
}
load html(%tttest)

Link to post
Share on other sites

So finally I helped myself by creating a PHP-File on our webserver, producing a random list and reading it with LIST-FROM-FILE. Hope this issue will be solved soon.

Edited by Hagen
Link to post
Share on other sites

Are there any UBOT-admins following here? No "official" comments?

 

 

If you have any questions for UBot staff in the future, please don't hesitate to open a ticket with us at support.ubotstudio.com

 

The same behavior is present in the rand function, and so the two issues are related.

 

Your issue has been submitted separately to our tracker: http://tracker.ubotstudio.com/issues/358

 

We will update the issue once it is scheduled for an update. 

Link to post
Share on other sites

I guess he means, like in any other product user forums, if there are any friendly admins, that can communicate to the community some insight, or some solutions that are in progress.

 

 

Are there any UBOT-admins following here? No "official" comments?

Link to post
Share on other sites

right now $spin produces same pattern sequence with every bot-start. how do I code it to have a truly random result every time?

Possible workaround...

 

Add an onload command that includes a loop that spins your text. Then stop the loop when the user initiates the program by clicking start, or run. (The difference in time that each user takes to start the bot will randomize their results.) 

Link to post
Share on other sites

Possible workaround...

 

Add an onload command that includes a loop that spins your text. Then stop the loop when the user initiates the program by clicking start, or run. (The difference in time that each user takes to start the bot will randomize their results.) 

Or just use v4 until v5 is fixed? :)

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...