-
-
Notifications
You must be signed in to change notification settings - Fork 123
Description
I'm thinking of doing some kind of RANDOMCALL macro that would allow you to do any number of consecutive RANDOMCALL commands and it would only pick one of them at equal chance and return to the next non-RANDOMCALL command.
So when EXRAIL encounters a RANDOMCALL, it counts the number of consecutive RANDOMCALLs does the choice but sets the return address to be the instruction after the last one.
I could do RANDOMFOLLOW the same way.
(special case, just one RANDOMCALL means 50%, RANDOMCALL(0) means a do nothing.
e.g.
AT(777)
RANDOMCALL(123) // 33% chance
RANDOMCALL(456) // 33% chance
RANDOMCALL(0) // 33% chance
SPEED(20)
Although it might even be better to do RANDOMCALL(123,456,0) the variadic macro support is very messy in c++
but the execution is easy as it can count.
Metadata
Metadata
Assignees
Labels
Type
Projects
Status