#!/usr/bin/perl use warnings; use strict; my @randNums; push @randNums, rand(20) for 1 .. 20; print "@randNums\n";