Generate meaningful text from random letters
<p>Is there's someway to generate a meaningful text from random letters 
as ex. if I type </p>

<blockquote>
  <p>sbras</p>
</blockquote>

<p>the program should give this or something similar </p>

<blockquote>
  <p>saber</p>
</blockquote>

<p>if the above request can't get  a good answer , then</p>

<p>I like the generated text and/or numbers on screens in hack &amp; technologies movies</p>

<p>is there's someway to generate a text or numbers , I mean with typing animations</p>

<p>I can use my own text and numbers in python <code>print</code> but won't give me the typing animations like movies </p>

<p>if the above requests can done in python ,that will be great</p>

<p>but if can done in other language , I will be thankful too</p>

<p>As for your first question: Well, that depends on how specifically you want it. If you want to do it real-time, i.e. you want proper words to appear as you type random stuff, well, good luck with that. If you have a text with random letters, you could afterwards look for proper anagrams of every word in the text. You will require a list of proper words to see if they are anagrams, however. </p>

<p>Note that also "a sentence with proper words" is a completely different thing than "a proper sentence". The former is done relatively easy with enough time and effort, while the latter is (close to) impossible to do, as you require your program to have knowledge of both grammar and the type of words (i.e. noun, verb, preposition...).</p>

<p>As for your second question, print is indeed instant. However, you could use the <code>time</code> module to get the wanted effect. One example:</p>

<pre><code>import time
import sys
sentence = "The quick brown fox jumps over the lazy dog"
for c in sentence:
  sys.stdout.write(c)
  time.sleep(0.1)
</code></pre>

<p>You can adjust the 0.1 to your liking - it's the sleep time in seconds. You could even make it random within some interval. For the reason I used <code>sys.stdout.write</code> as opposed to <code>print c</code> or <code>print c,</code> see <a href="http://stackoverflow.com/questions/255147/how-do-i-keep-python-print-from-adding-newlines-or-spaces">this question</a>.</p>

python random programming-languages dynamically-generated