Perl Language Randomness Generate a random number between 0 and 100

Help us to keep this website almost Ad Free! It takes only 10 seconds of your time:
> Step 1: Go view our video on YouTube: EF Core Bulk Insert
> Step 2: And Like the video. BONUS: You can also share it!

Example

Pass an upper limit as an argument to the rand() function.

Input:

my $upper_limit = 100;
my $random = rand($upper_limit);

print $random . "\n";

Output:

A random floating-point number, like...

45.8733038119139


Got any Perl Language Question?