View on
MetaCPAN
Egor Korablev > Random-Quantum > Random::Quantum

Download:
Random-Quantum-0.04.tar.gz

Dependencies

Annotate this POD

View/Report Bugs
Module Version: 0.04   Source  

NAME ^

Random::Quantum - Get fundamentally random numbers using QRBGS ( Quantum Random Bit Generator Service http://random.irb.hr/ )

SYNOPSIS ^

    use Random::Quantum();
    my $cl = new Random::Quantum(user => 'YOUR_LOGIN', 'password' => 'YOUR_PASSWORD');
    print $cl->int1; # prints unsigned int(1)

METHODS ^

int1

Returns unsigned tiny (1 byte) integer

int1_signed

Returns signed tiny (1 byte) integer

int2

Returns unsigned short integer

int2_signed

Returns signed short integer

int4

Returns unsigned long integer

int4_signed

Returns signed long integer

INTERNAL METHODS ^

status

Status of last request

error

Last error

chunk($size)

Returns bits

Links ^

CONFIG ^

use_cache => 0|1

Cache service answer. Default: 1

cache_size => 1..unknown

Size of cache. Default: 4096.

Quantum Random Bit Generator Servicerandom.irb.hr</a>>

AUTHOR ^

Egor Korablev, <egor.korablev at gmail.com>

COPYRIGHT & LICENSE ^

This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

syntax highlighting: