You are looping 250 times, generating numbers between 0 and 100. Try this:
#! /usr/bin/perl -w use strict; print int (rand (251) + 250), "\n" for (1..100);
Update: Thanks to blue_cowdawg and pizza_milkshake, changed the 250 to 251.
In reply to Re: Random numbers generation
by pbeckingham
in thread Random numbers generation
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |