0) take a connected random graph (call graphs.RandomGNP in a loop, until you get something connected)1) take a random ordering of vertices, say v1,v2,...,vn.
2) orient each edge (vi,vj) in the direction j>i.
How big is your n?
"Almost all" finite posets are connected, so uniform distribution of all posets would work too for bigger n.
There is a code for generating posets, see attachment at
https://trac.sagemath.org/ticket/14110 , but unfortunately it has not been
integrated to Sage. I just tested and it takes about 2,2 seconds to
generate 11-element posets (there are 46749427 of those) and 38 seconds
for 12-element posets. I guess you could use that up to 14 elements.