Randomising-Strategies
Randomly allocate claims to two strategies A and B with 50%/50% proportions.
"Math.random() < 0.5" will be randomizing to around 50% following the True strategy and around 50% following the False strategy. It is "around" because while this will tend to be 50% when you have a large enough sample, in the beginning, it might be a bit skewed for one side or the other, being random and all.
Use Math.random() < 0.5 in an if condition like this: