This paper presents an optimal ranked set sample allocation scheme for a tw
o-sample ranked set sample median test for a location shift between X- and
Y-sample distributions F and G. It is shown that the optimal design based o
n maximizing the asymptotic Pitman efficiency quantifies only the middle ob
servation(s) in a set of X- and Y-samples uniformly over all probability mo
dels. The exact probability distribution of the ranked set two-sample media
n test is derived and tabulated for selected sample and set sizes.