﻿function get_randomCssNum()
{
    var ranCssNum= Math.floor(Math.random()*7);
	//var ranCssNum= Math.floor(Math.random()*Number of CSS you Have);
    return ranCssNum;
}

function getaCss()
{
   var whichCss=get_randomCssNum();

    var cssName=new Array(7)
     // var cssName=new Array(Number of CSS you Have)
     cssName[0]="<link rel='stylesheet' type='text/css' href='/css/index/style_1.css'>";
     cssName[1]="<link rel='stylesheet' type='text/css' href='/css/index/style_2.css'>";
     cssName[2]="<link rel='stylesheet' type='text/css' href='/css/index/style_3.css'>";
     cssName[3]="<link rel='stylesheet' type='text/css' href='/css/index/style_4.css'>";
     cssName[4]="<link rel='stylesheet' type='text/css' href='/css/index/style_5.css'>";
     cssName[5]="<link rel='stylesheet' type='text/css' href='/css/index/style_6.css'>";
     cssName[6]="<link rel='stylesheet' type='text/css' href='/css/index/style_7.css'>";
     //I am using 7 CSS files in this example. you can add or remove ;)
     //for Add more CSS just add line like this 
     //cssName[Next Number]="<link rel='stylesheet' type='text/css' href='CSS FILE URL'>";
  	return cssName[whichCss]
  }
  document.write(getaCss());