PHP Classes

File: examples/getsequence.php

Recommend this page to a friend!
  Classes of Christian Vigh   PHP Random.Org API   examples/getsequence.php   Download  
File: examples/getsequence.php
Role: Example script
Content type: text/plain
Description: Example script
Class: PHP Random.Org API
Generate random values using random.org
Author: By
Last change: Update of examples/getsequence.php
Date: 1 year ago
Size: 693 bytes
 

Contents

Class file image Download
<?php
   
/**************************************************************************************************************

        getsequence.php -
        Echoes the sequence of integer values between $min and $max, arranged in a random order.
   
     **************************************************************************************************************/
   
require ( 'examples.inc.php' ) ;

   
$random = new RandomOrg ( $agent_string ) ;
   
$min = 1 ;
   
$max = 10 ;
   
   
$values = $random -> GetSequence ( $min, $max ) ;

    echo (
"Getting a random sequence of all integer values between $min and $max :\n" ) ;
    echo (
"\t" . implode ( ', ', $values ) . "\n" ) ;

   
display_statistics ( $random ) ;