9 Einträge, 1 Seite |
QuoteYou can call srand($seed) with the same $seed to reproduce the same sequence from rand(), but this is usually reserved for generating predictable results for testing or debugging. Otherwise, don't call srand() more than once in your program.
1
2
3
4
5
6
7
8
9
#! /usr/bin/perl
use strict;
use warnings;
srand(95558);
for(0..7){
print rand(61),"\n";
}
51 56 59 47 58 28 46 50
18 0 29 6 39 13 41 42
9 Einträge, 1 Seite |