From 00ac79c11155bd7fc5e3489b675d50dd027207ad Mon Sep 17 00:00:00 2001 From: don bright Date: Sun, 6 Jan 2013 18:12:00 +0100 Subject: remove unneeded frand functions 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&, 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&, const std::vector &args) { bool deterministic = false; -- cgit v0.10.1