troubleshooting Question

RANDOM in function

Avatar of gummisj
gummisj asked on
11 Comments1 Solution669 ViewsLast Modified:
Hi guys, i have one question, how can i add random to this function here below? is it poseble to add the random somewhere there inside? if so? please help asap, it is 500 pt for this. i need it fast, or do you need something more to this can be done?
private string DeliverThjonPages()
			if( Query == null )
				return "";
			//if( cp > 1 )
			//	return "";	
			string pages = "";
		  	int min = (cp - 1) * 12;
			int max = ((cp - 1) * 12) + 12;
			int counter = 0;
			if( ThjonPages.Contains( Query.ToLower().Trim() ) )
				DataTable resTable = (DataTable) ThjonPages[Query.ToLower().Trim()]; //Cleaned
				DataRow[] results = resTable.Select("","Date_Created");
				if(results.Length < min)
					AreThjonResults = false;
				foreach( DataRow dr in results )		
					if(counter >= min & counter < max)
						pages += MakeThjonPage(dr);
						AreThjonResults = true;
			return pages;
Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 1 Answer and 11 Comments.
Join the Community
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 11 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros