Is there a rand option for dgraph?

In mongo you can sample n documents in the database.

Is there an equivalent operator in dgraph? Or is there a workaround apart from sampling within my server process?

Duplicate: Pick random node