in reply to Random numbers generation
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.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Random numbers generation
by pizza_milkshake (Monk) on May 21, 2004 at 16:58 UTC | |
|
Re: Re: Random numbers generation
by Anonymous Monk on May 21, 2004 at 16:55 UTC | |
by blue_cowdawg (Monsignor) on May 21, 2004 at 17:01 UTC | |
by pbeckingham (Parson) on May 21, 2004 at 18:21 UTC |