Hi,
sorry for delay had some major fires to put out.
once the user performs the search you cold use
List<string> example = solr(..return..); //this is where solrnet
returns the records
Random random = new Random(); //create a random
int randomNumber = random.Next(1, example.count()); // this would
return a random number between 1 and the total records in your return,
from the List<> get the record of that random number
example.Skip(randomNumber).Take(1).First(); //get the random record
from the search
The above would be if you want to get a random record from a search
you have already performed.
the second solution is the add a random field in solr, that is also
really easy.
in your solr schema.xml file add
<dynamicField name="random*" type="random" indexed="true"
stored="false" />
and see
http://lucene.apache.org/solr/api/org/apache/solr/schema/RandomSortField.html
or have SolrNet do it for you, Mauricio pasted the link above for it.