A controlled number of these dots are purposely moving uniformly in the same direction, and the test subject simply has to say whether he believes those dots are moving to the left or right.
It controlled a trap door between the boxes and allowed only fast-moving (ie, hot) molecules through in one direction and only slow-moving (ie, cold) ones through in the other.