Added method to generate random strings for specific browsers.