Random literal number I took inspiration from a challenge I did some years ago in a programming competition.

Your goal is to write a function that generates a random integer number between 0 and 150 (included), and then prints it in actual words. For example, 139 would be printed as onehundredthirtynine.

Rules:


You cannot use any external resource, nor any library that will perform the conversion.
The shortest answer will win.


Good luck!
Lua

print"four"


Highly optimized and golfed xkcd's random number generator

An actual solution, 380

x=math.random(0,150)m=math.floor print(x==0 and"zero"or((x&gt;99 and"onehundred"or"")..(({"ten","eleven","twelve","thirteen","fourteen","fifteen","sixteen","seventeen","eighteen","nineteen"})[x%100-9]or({[0]="",nil,"twenty","thirty","fourty","fifty","sixty","seventy","eighty","ninety"})[m(x/10)%10]..({[0]="","one","two","three","four","five","six","seven","eight","nine"})[x%10])))