1 /* rand_funcs.h: General purpose random number functions. 2 3 Copyright (C) 2021 by Brian Lindholm. 4 This file is part of the littleutils utility set. 5 6 The rand_funcs.h file is free software; you can redistribute it and/or 7 modify it under the terms of the GNU General Public License as published by 8 the Free Software Foundation; either version 3, or (at your option) any 9 later version. 10 11 The randomize utility is distributed in the hope that it will be useful, but 12 WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY 13 or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for 14 more details. 15 16 You should have received a copy of the GNU General Public License along with 17 the littleutils. If not, see <https://www.gnu.org/licenses/>. */ 18 19 #ifndef _RAND_FUNCS_H 20 #define _RAND_FUNCS_H 1 21 22 #include <stddef.h> 23 #ifdef HAVE_STDDEF_H 24 # include <stddef.h> 25 #endif 26 27 void rand_seed (); 28 size_t rand_int (size_t n); 29 30 #endif /* rand_funcs.h */