Created
May 18, 2017 01:48
-
-
Save kubrick06010/006f6cb9a28a6513eca9274650952484 to your computer and use it in GitHub Desktop.
Script para producir frases de nuestro querido Chiquito De La Calzada
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/env ruby | |
| # encoding: utf-8 | |
| # Autor: Dalboz | |
| chiquitoArray = ["ayayayai", "manco", "deskiciado", "forastero", "fistro","torpedo","pecador","sexuarl","por la gloria de mi madre","diodeno","condemor","jarl","ese que llega","pupita","la caidita","te voy a borrar el cerito","al ataquerl","a wan","a peich","a gramenawer","no puedor","hasta luego Lucas","mamaar","apetecan","caballo blanco caballo negroorl","ese pedazo de","benemeritaar","te va a hasé pupitaa","de la pradera", "ese hombree", "quietooor", "qué dise usteer", "no te digo trigo por no llamarte Rodrigor", "está la cosa muy malar", "tiene musho peligro","ahorarr","diodenoo","amatomaa","me cago en tus muelas","llevame al sircoo", "papaar papaar", "se calle ustée", "va usté muy cargadoo"] | |
| def generalinea(chiquitoArray) | |
| nPalabras = rand(12)+4 | |
| linea = "" | |
| for num in 1...nPalabras | |
| i = rand(chiquitoArray.length)*1 | |
| #puts "El indice aleatorio es #{i}" | |
| linea = linea + chiquitoArray[i] + " " | |
| #puts "Ciclo #{num} #{linea}" | |
| end | |
| #puts "#{linea}\n" | |
| if linea.length <= 10 | |
| generalinea(chiquitoArray) | |
| else | |
| puts "#{linea}\n" | |
| end | |
| end | |
| generalinea(chiquitoArray) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment