ADMB Documentation  11.1.2537
 All Classes Files Functions Variables Typedefs Friends Defines
bet_rand.cpp
Go to the documentation of this file.
00001 /*
00002  * $Id: bet_rand.cpp 1919 2014-04-22 22:02:01Z johnoel $
00003  *
00004  * Author: David Fournier
00005  * Copyright (c) 2009-2012 ADMB foundation
00006  */
00011 #include <fvar.hpp>
00012 
00017 double better_rand(long int& idum)
00018 {
00019   random_number_generator rng(idum);
00020   double rr = ((random_number_generator&) rng).better_rand();
00021   return rr;
00022 }