I have problem about get random selection of records in a table mongoDb
example in sql server:
select top 10 * from Employee order by NEWID()
now equivalent order by NEWID() in mongoDB C#
thank you
random selection of records in a table mongoDb
I mean was
Randomly selects the specified number of documents from the input documents
$sample
collection.AsQueryable<T>().Where().Select().**Sample(count)**.ToList()