function _sheetnode_lcg_randf in Sheetnode 7
Same name and namespace in other branches
- 6 sheetnode.module \_sheetnode_lcg_randf()
- 7.2 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 775 - Module file for the sheetnode module.
Code
function _sheetnode_lcg_randf($min, $max) {
return $min + lcg_value() * abs($max - $min);
}