Ribosomes link amino acids together one at a time until a polypeptide is fully formed. The ribosome can make peptide bonds between any pair of amino acids so all sequences are possible.
For a polypeptide of n amino acids, there are 20^n possible sequences.