TimothyLuke / GSE-Advanced-Macro-Compiler

GSE is an alternative advanced macro editor and engine for World of Warcraft.
https://discord.gg/gseunited
MIT License
208 stars 70 forks source link

Random Step Function not working as desired #838

Closed semisacred closed 3 years ago

semisacred commented 3 years ago

The random step function behaves a bit peculiarly, the first time the macro is used, it will pick the first line in the sequence always. Then the next and subsequent times, it will go on to choose a random line.

eg:

/y 1 /y 2 /y 3 /y 4

1 will always be first followed by random.

since I don't always want 1 first, I do this as a bit of a workaround:

/y /y 1 /y 2 /y 3 /y 4

this does require me to click twice initially which is a bit annoying for my opie rings. Hope you have a look and it's an easy fix!

TimothyLuke commented 3 years ago

Random does as random does. While it behaves like that for you it behaves differently for me. In my case the first line generally is always the 4th. Random is a mathematical function that is implemented in WoW to follow some certain characteristics which as a developer I have no control over.