Reputation:
Trying to generate ten numbers which are random and without decimal point.
my @randoms = map { rand } (1..10)
This code returns ten random numbers yet with decimal like 0.218220758325518.
I want round off these numbers.
Need a help. Thanks.
Upvotes: 3
Views: 78