| 1 | package Image::Caa::DitherRandom; | ||
| 2 | |||
| 3 | 2 | ▶ | use strict; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 4 | 2 | ▶ | use warnings; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 5 | |||
| 6 | 2 | ▶ | sub new { |
|
Subroutine
new: called CC=1 SCAR=0.0
Pod
undocumented
| |||
| 7 | 2 | my ($class, $args) = @_; | |
| 8 | |||
| 9 | 2 | my $self = bless {}, $class; | |
| 10 | |||
| 11 | 2 | return $self; | |
| 12 | } | ||
| 13 | |||
| 14 | 2 | ▶ | sub init { |
|
Subroutine
init: called CC=1 SCAR=0.0
Pod
undocumented
| |||
| 15 | 2 | srand(time() ^ ($$ + ($$ << 15))); | |
| 16 | } | ||
| 17 | |||
| 18 | 16 | ▶ | sub get { |
|
Subroutine
get: called CC=1 SCAR=0.0
Pod
undocumented
| |||
| 19 | 16 | return int(rand(0xff)); | |
| 20 | } | ||
| 21 | |||
| 22 | 4 | ▶ | sub increment { |
|
Subroutine
increment: called CC=1 SCAR=0.0
Pod
undocumented
| |||
| 23 | } | ||
| 24 | |||
| 25 | |||
| 26 | 2 | 1; | |