You are here

function _sheetnode_lcg_randf in Sheetnode 6

Same name and namespace in other branches
  1. 7.2 sheetnode.module \_sheetnode_lcg_randf()
  2. 7 sheetnode.module \_sheetnode_lcg_randf()

Helper function to return random number using combined linear congruential generator.

1 call to _sheetnode_lcg_randf()
sheetnode_content_generate in ./sheetnode.module
Implementation of hook_content_generate().

File

./sheetnode.module, line 717

Code

function _sheetnode_lcg_randf($min, $max) {
  return $min + lcg_value() * abs($max - $min);
}