You are here

function _sheetnode_lcg_randf in Sheetnode 7.2

Same name and namespace in other branches
  1. 6 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_devel_generate in ./sheetnode.module
Helper to generate random spreadsheet.

File

./sheetnode.module, line 768
Module file for the sheetnode module.

Code

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