body{background:url(<%=imgUrl%>) no-repeat top; margin:0px; padding:0px; font-size:12px; color:#525252;}
protected string imgUrl = "images/bag_1.jpg";
#region 生成不同随机数的方法
/// <summary>
/// 生成不同随机数的方法
/// </summary>
/// <param name="min">最小值</param>
/// <param name="max">最大值</param>
/// <param name="count">取xx个</param>
/// <returns>int数组</returns>
private int GetRandom(int min, int max, int count)
{
int[] maxArray = new int[max];
for (int i = 0; i < max; i++)
{
maxArray[i] = min + i;
}
int[] rArray = new int[count];
Random rd = new Random();
int temp = max;
for (int i = 0; i < 1; i++)
{
int tIndex = rd.Next(0, temp);
rArray[i] = maxArray[tIndex];
maxArray[tIndex] = maxArray[--temp];
}
return rArray[0];
}
#endregion