Tryit Editor v1.8

Source Code:
<!DOCTYPE html> <html> <body> <script type="text/vbscript"> randomize() r=rnd() If r>0.5 Then document.write("<a href='../default.htm'>Learn Web Development!</a>") Else document.write("<a href='../../www.refsnesdata.no/default.htm'>Visit Refsnes Data!</a>") End If </script> <p> This example demonstrates a link, when you click on the link it will take you to W3Schools.com OR to RefsnesData.no. There is a 50% chance for each of them. </p> </body> </html>
Result:
W3Schools.com - Try it yourself