Noob here still working on my first few scripts. Wondering the best way to choose a random action.
for example, choosing between using a bank deposit box and the bank function. Right now i have it written as such:
if(inventory.isFull() && random(100,200)%2 == 0 ){
return State.DEPOSITBOX;
else
return State.BANK;
}
is this a good practice? (using more actions and mods?)
I've seen some talk about using https://en.wikipedia.org/wiki/Random_seed .. if that's the way to do it would someone mind providing an example (using a timer?) I imagine you don't want your bot to uniformly distribute the "random" options over time..
Appreciate any input.