This article is from the Table Tennis (Ping Pong) FAQ, by ttennis@bu.edu with numerous contributions by others.
3.14.1 The right to make first choice shall be decided by lot.
3.14.2 The player or pair winning this right may
3.14.2.1 choose to serve or to receive first, when the loser shall have the
choice of ends;
3.14.2.2 choose an end, when the loser shall have the choice of serving or
receiving first;
3.14.2.3 require the loser to make the first choice, when the winner shall
have whichever choice is not made by the loser.
3.14.3 In doubles, the pair having the right to serve first in each game shall
decide which of them will do so and
3.14.3.1 in the first game of a match, the opposing pair shall then decide
which of them will receive first;
3.14.3.2 in subsequent games of the match, the first receiver will be determined
by the choice of server, as provided in 3.15.5.
 
Continue to: