Goodie LOLCAT Translator


![screenshot from 2014-11-10 21 47 07](https://cloud.githubusercontent.com/assets/1478816/4988898/32515c1c-6923-11e4-89a5-fe49a21ff6bb.png)

**What does your Instant Answer do?**
Converts text into the LOLCAT language

**What problem does your Instant Answer solve (Why is it better than organic links)?**
It is a dynamic translator

**What is the data source for your Instant Answer? (Provide a link if possible)**
The Goodie PM file source code
https://github.com/JohnCarlosReed/zeroclickinfo-goodies/blob/master/lib/DDG/Goodie/LOLCAT.pm

**What are some example queries that trigger this Instant Answer?**
lolcat followed by any text

**Which communities will this Instant Answer be especially useful for? (gamers, book lovers, etc)**
meme lovers, cat people, geeks

**Is this Instant Answer connected to a DuckDuckHack [Instant Answer idea](https://duck.co/ideas)?**
Yes:  https://duck.co/ideas/idea/4595/lolcat-translator-goodie

**Which existing Instant Answers will this one supercede/overlap with?**
None

**Are you having any problems? Do you need our help with anything?**
No

**Where did you hear about DuckDuckHack? (For first time contributors)**
Searched for Perl open source projects


## Checklist
Please place an 'X' where appropriate.

```
[X] Added metadata and attribution information (https://duck.co/duckduckhack/metadata)
[X] Wrote test file and added to t/ directory (https://duck.co/duckduckhack/goodie_tests)
[X] Verified that instant answer adheres to design guidelines (https://duck.co/duckduckhack/design_styleguide)
[] Verified that instant answer adheres to code styleguide (https://duck.co/duckduckhack/code_styleguide)
[] Tested cross-browser compatibility

    Please let us know which browsers/devices you've tested on:
    - Ubuntu 14
        [X] Firefox

```

Oh, I see how it works, now. :grin:

On the other hand this rand bit seems unlikely to work consistently.  You're going to need an integer index.  Something like:

```perl
int(rand(@$repl{$_}))
```
should to do the trick.