You can use ā Math::Random Google will explain you Math::Random
or try to use the Tutorials in the Community