in reply to Show different text based on random number
#!/usr/bin/env perl use strict; use warnings; my @choices = ( "Choice 1", "Choice 2", "Choice 3", "Choice 4" ); my $random_choice = $choices[rand @choices]; print "The text is: $random_choice\n"; exit;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Show different text based on random number
by htmanning (Friar) on Apr 22, 2016 at 04:43 UTC | |
by kevbot (Vicar) on Apr 22, 2016 at 04:53 UTC | |
by htmanning (Friar) on Apr 22, 2016 at 05:48 UTC | |
by kevbot (Vicar) on Apr 22, 2016 at 06:01 UTC | |
by htmanning (Friar) on Apr 22, 2016 at 06:02 UTC | |
|