Marcel Grünauer > CatalystX-Crudite-0.16 > CatalystX::Crudite::Util::Random

Download:
CatalystX-Crudite-0.16.tar.gz

Dependencies

Annotate this POD

Website

View/Report Bugs
Source   Latest Release: CatalystX-Crudite-0.21

FUNCTIONS ^

unique

set up a generator:

    my $id_generator = unique(sub { int rand 1000 });

get a random unique id from this generator:

    $id_generator->();
syntax highlighting: