Try this way:
public partial class Form1 : Form
{
static List<string> urls;
static Random random = new Random();
public Form1()
{
InitializeComponent();
if(urls == null)
{
urls = GetWebsiteUrls(); //Need to implement
}
string url = urls[random.Next(urls.count)];
System.Diagnostics.Process.Start("iexplore.exe", url); //try using some other webbrowser too
}
}
Mitja Bonca
Posting Maven
2,561 posts since May 2009
Reputation Points: 642
Solved Threads: 486
Skill Endorsements: 13