00001 /* $Id: xsh_model_randlcg.h,v 1.6 2008/05/23 09:07:49 amodigli Exp $ 00002 * 00003 * This file is part of the ESO X-shooter Pipeline 00004 * Copyright (C) 2006 European Southern Observatory 00005 * 00006 * This program is free software; you can redistribute it and/or modify 00007 * it under the terms of the GNU General Public License as published by 00008 * the Free Software Foundation; either version 2 of the License, or 00009 * (at your option) any later version. 00010 * 00011 * This program is distributed in the hope that it will be useful, 00012 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00013 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00014 * GNU General Public License for more details. 00015 * 00016 * You should have received a copy of the GNU General Public License 00017 * along with this program; if not, write to the Free Software 00018 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 00019 */ 00020 00021 /* xsh_randlcg.h prototypes for the minimal standard random number generator, 00022 00023 Linear Congruential Method, the "minimal standard generator" 00024 Park & Miller, 1988, Comm of the ACM, 31(10), pp. 1192-1201 00025 00026 00027 rcsid: @(#)xsh_randlcg.h 1.1 15:48:09 11/21/94 EFC 00028 00029 */ 00030 00031 #ifndef XSH_MODEL_RANDLCG_H 00032 #define XSH_MODEL_RANDLCG_H 1.1 00033 00034 long get_seed(void); 00035 unsigned long int xsh_randlcg(void); 00036 long xsh_set_seed(long int); 00037 00038 #endif 00039