How to generate random float in lua?

lua, random

Solution

This should generate random floats between 1 (inclusive) and 100 (exclusive)

math.random() + math.random(1, 99)

Problem

I need to generate random float in Lua. It needs to be > 1, so math.random() is not a solution. How can I do this?

Original source