Brute force with randomization