Can we have a random in user query( like the post query)

can we have a random in user query( like the post query)