00001 /* $Id: xsh_model_r250.h,v 1.3 2008/05/23 09:07:09 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 /* r250.h prototypes for r250 random number generator, 00022 00023 Kirkpatrick, S., and E. Stoll, 1981; "A Very Fast 00024 Shift-Register Sequence Random Number Generator", 00025 Journal of Computational Physics, V.40 00026 00027 also: 00028 00029 see W.L. Maier, DDJ May 1991 00030 00031 00032 */ 00033 00034 #ifndef _R250_H_ 00035 #define _R250_H_ 1.2 00036 00037 #ifdef __cplusplus 00038 extern "C" { 00039 #endif 00040 00041 #ifdef NO_PROTO 00042 void xsh_r250_init(); 00043 unsigned int r250(); 00044 double xsh_dr250(); 00045 00046 #else 00047 void xsh_r250_init(int seed); 00048 unsigned int r250( void ); 00049 double xsh_dr250( void ); 00050 #endif 00051 00052 #ifdef __cplusplus 00053 } 00054 #endif 00055 00056 #endif