Random Sequence Simulation:
In order to evaluate the significance of such alignment FastA empirically estimates the score distribution from the alignment of many random pairs of sequences.
More precisely, the characters of the query sequences are reshuffled (to maintain bias due to length and character composition) and searched against a random subset of the database. This empirical distribution is extrapolated, assuming it is an extreme value distribution, and each alignment to the real query is assigned a Z-score and an E-score.
The Fasta program can be used through an interface in WWW2.EBI.ac.uk/fasta3.[11]