random macro tuning