# SFBRandom.h

    00001 /*
    00002   SFBRandom.h - Arduino-compatible random number API for the SFB.
    00003   Copyright (C) 2009 The Regents of the University of New Mexico.  All rights reserved.
    00004
    00005   This library is free software; you can redistribute it and/or
    00006   modify it under the terms of the GNU Lesser General Public
    00007   License as published by the Free Software Foundation; either
    00008   version 2.1 of the License, or (at your option) any later version.
    00009
    00010   This library is distributed in the hope that it will be useful,
    00011   but WITHOUT ANY WARRANTY; without even the implied warranty of
    00012   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
    00013   Lesser General Public License for more details.
    00014
    00015   You should have received a copy of the GNU General Public License
    00016   along with this library; if not, write to the Free Software
    00017   Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301
    00018   USA
    00019
    00020   $Id$
    00021 */
    00022
    00023 #ifndef SFBRANDOM_H
    00024 #define SFBRANDOM_H
    00025
    00026 #include "random.h"  /* for randomImpl() */
    00027
    00028 extern void randomSeed(u32 seed);
    00029
    00030 extern long random(u32 max);
    00031
    00032 extern long random(int min, int max);
    00033
    00034 extern u32 randomBits(u32 n);
    00035
    00036 #endif /* SFBRANDOM_H */