Finished bruteforce and randomized methods