mycred_lotto_random_draw

Codex / / Functions / mycred_lotto_random_draw

Navigation:

  1. Description
  2. Usage
  3. Parameters
  4. Return

Description

This function will draw a set of numbers at random between two set ranges.

 

Usage

<?php
$winning_numbers = mycred_lotto_random_draw( $min, $max, $num );

 

Parameters

  • min (int)
    The lowest number that can be picked.
  • max (int)
    The highest number that can be picked.
  • num (int)
    The number of values to return.

 

Return

Returns an array with the randomly selected numbers.

Last edited July 2, 2014