I wrote a very simple python program.
#!/usr/bin/env python import random x = random.uniform(-1, 1) print str(x)
I run this from command pr
Don't name your program as an Library. And just as a Tip: You don't need an String storing something and printing it out just after generating it.
#!/usr/bin/env python import random print(random.uniform(-1, 1))
This will work fine too ;)