To get random data from certain collection refer to $sample aggregation.
$sample
db.emplyees.aggregate({ $sample: { size:1 } })
where size stands for number of items to select.
size