summaryrefslogtreecommitdiff
path: root/src/func.cc
diff options
context:
space:
mode:
authordon bright <hugh.m.bright@gmail.com>2013-01-06 17:12:00 (GMT)
committerdon bright <hugh.m.bright@gmail.com>2013-01-06 17:12:00 (GMT)
commit00ac79c11155bd7fc5e3489b675d50dd027207ad (patch)
treeb85f55c4d74f7081de449db7636a9afe88c96485 /src/func.cc
parent3825a7249944daa7765ebbdf836557c5032b2836 (diff)
remove unneeded frand functions
Diffstat (limited to 'src/func.cc')
-rw-r--r--src/func.cc10
1 files changed, 0 insertions, 10 deletions
diff --git a/src/func.cc b/src/func.cc
index ee269d0..5dcb3e9 100644
--- a/src/func.cc
+++ b/src/func.cc
@@ -141,16 +141,6 @@ Value builtin_sign(const Context *, const std::vector<std::string>&, const std::
return Value();
}
-double frand()
-{
- return rand()/(double(RAND_MAX)+1);
-}
-
-double frand(double min, double max)
-{
- return (min>max) ? frand()*(min-max)+max : frand()*(max-min)+min;
-}
-
Value builtin_rands(const Context *, const std::vector<std::string>&, const std::vector<Value> &args)
{
bool deterministic = false;
contact: Jan Huwald // Impressum