Generate A Pseudo-Random DNA Sequence

After filling in the parameters below, press "Generate" to create a sequence of pseudo-random nucleotides.

NBCI BLAST PAGE (opens in a new window)

Input Parameters

Number of Nucleotides

Characters Per Line

Spaces after how many characters?
(set to 0 for no spaces)

Ratio A

Ratio G

Ratio C

Ratio T

Make Another String!

Output Messages

You must sumbit this form with values in ALL FIELDS for it to work

Usage Notes

Number of Nucleotides must be 100000 or less (to save load on my server!)

Ratio A, ... , Ratio G can be any numbers. They do not need to add up to 1 or 100 or anything like that. The program interprets them as ratio amounts.

If you select large numbers for the row-length, the layout will break, but the data will still be fine.


PHP Nucleotide Sequence Generator – Created on 04 September 2003 by Gregg R. Lind.

Terms of Use

You may use this code however you wish (non-commerical), as long as you properly attribute the source by adding the following to any derived code:

Based on: PHP Nucleotide Sequence Generator -- Created on 04 September 2003 by Gregg R. Lind.

download this script here. To use, rename it with a PHP extension, and place inside a PHP enabled web folder.