Professional Documents
Culture Documents
A computer program can easily produce gibberish - especially if it has been provided with
garbage beforehand. This program does something a little different. It takes a block of text
as input and works out the proportion of characters within the text according to a chosen
order. For example, an order of 2 means the program looks at pairs of letters, an order of 3
means triplets of letters and so on. The software can regurgitate random text that is
controlled by the proportion of characters. The results can be quite surprising.
0 order produces random text based on the proportion of letters within the input text, 2nd
order produces gibberish - 6th order and above can often be meaninglessly readable.
Use the sample text below, or else you can replace it by typing over or pasting in your own
block of text.
窗体顶端
5
Create random text 500
No of chars Order
(2 - 20) Show frequency table
(less than 3500)
窗体底端
In the first place we have granted to God, and by this our present
charter confirmed for us and our heirs forever that the English Church
shall be free, and shall have her rights entire, and her liberties
inviolate; and we will that it be thus observed; which is apparent from
this that the freedom of elections, which is reckoned most important
and very essential to the English Church, we, of our pure and
unconstrained will, did grant, and did by our charter confirm and did
obtain the ratification of the same from our lord, Pope Innocent III,
before the quarrel arose between us and our barons: and this we will
observe, and our will is that it be observed in good faith by our heirs
forever. We have also granted to all freemen of our kingdom, for us
and our heirs forever, all the underwritten liberties, to be had and held
by them and their heirs, of us and our heirs forever.
Fog everywhere. Fog up the river, where it flows among green aits and
meadows; fog down the river, where it rolls deified among the tiers of
shipping and the waterside pollutions of a great (and dirty) city. Fog
on the Essex marshes, fog on the Kentish heights. Fog creeping into
the cabooses of collier-brigs; fog lying out on the yards and hovering
in the rigging of great ships; fog drooping on the gunwales of barges
and small boats. Fog in the eyes and throats of ancient Greenwich
pensioners, wheezing by the firesides of their wards; fog in the stem
and bowl of the afternoon pipe of the wrathful skipper, down in his
close cabin; fog cruelly pinching the toes and fingers of his shivering
little apprentice boy on deck. Chance people on the bridges peeping
over the parapets into a nether sky of fog, with fog all round them, as
if they were up in a balloon and hanging in the misty clouds.
yes and those handsome Moors all in white and turbans like kings
asking you to sit down in their little bit of a shop and Ronda with the
old windows of the posadas 2 glancing eyes a lattice hid for her lover
to kiss the iron and the wineshops half open at night and the castanets
and the night we missed the boat at Algeciras the watchman going
about serene with his lamp and O that awful deepdown torrent O and
the sea the sea crimson sometimes like fire and the glorious sunsets
and the figtrees in the Alameda gardens yes and all the queer little
streets and the pink and blue and yellow houses and the rosegardens
and the jessamine and geraniums and cactuses and Gibraltar as a girl
where I was a Flower of the mountain yes when I put the rose in my
hair like the Andalusian girls used or shall I wear a red yes and how he
kissed me under the Moorish wall and I thought well as well him as
another and then I asked him with my eyes to ask again yes and then
he asked me would I yes to say yes my mountain flower and first I put
my arms around him yes and drew him down to me so he could feel
my breasts all perfume yes and his heart was going like mad and yes I
said yes I will Yes.
Hush, the babies are sleeping, the farmers, the fishers, the tradesmen
and pensioners, cobbler, schoolteacher, postman and publican, the
undertaker and the fancy woman, drunkard, dressmaker, preacher,
policeman, the webfoot cocklewomen and the tidy wives. Young girls
lie bedded soft or glide in their dreams, with rings and trousseaux,
bridesmaided by glow-worms down the aisles of the organplaying
wood. The boys are dreaming wicked or of the bucking ranches of the
night and the jollyrogered sea. And the anthracite statues of the
horses sleep in the fields, and the cows in the byres, and the dogs in
the wet-nosed yards; and the cats nap in the slant corners or lope sly,
streaking and needling, on the one cloud of the roofs.
You can hear the dew falling, and the hushed town breathing.
if ($size > 0)
{
$rnd = mt_rand(0, $size-1);
$chars = $subarra[$rnd];
$substr = substr($chars, $order-1, 1);
$start = substr($start, 1, strlen($start)-1) . $substr;