You are here

function rb_numbers_action_random in Rules Bonus Pack 6

Action for 'rb_numbers_action_random'.

File

./rb_numbers.module, line 93
Functions for extending number management with Rules.

Code

function rb_numbers_action_random($settings) {

  // This function uses the PHP rand function for randomization. See
  // http://php.net/manual/en/function.rand.php for details.
  return array(
    'random_number' => rand($settings['min'], $settings['max']),
  );
}