You can write your own program for this task and contribute to the benchmarks game by following these general instructions.

More specifically:

diff program output N = 1000 with this 10KB output file to check your program is correct before contributing.

We are trying to show the performance of various programming language implementations - so we ask that contributed programs not only give the correct result, but also use the same algorithm to calculate that result.

Each program should

generate DNA sequences, by copying from a given sequence

generate DNA sequences, by weighted random selection from 2 alphabets

convert the expected probability of selecting each nucleotide into cumulative probabilities

encode the cumulative probabilities as blocks of duplicate lookup-table items

select an initial lookup-table item using a random number as an approximate index

match that random number against the cumulative probabilities to select the nucleotide

use this linear congruential generator to calculate a random number each time a nucleotide needs to be selected (don't cache the random number sequence)