doodle  0.2
Intended to support teaching C++, doodle is a simple library that helps make a window and makes it easy to do some drawing.
random.hpp
Go to the documentation of this file.
1 /*--------------------------------------------------------------*
2  Copyright (C) 2021 Rudy Castan
3 
4  This file is distributed WITHOUT ANY WARRANTY. See the file
5  `License.md' for details.
6 *--------------------------------------------------------------*/
7 #pragma once
8 
9 
10 namespace doodle
11 {
49  void seed_random(unsigned int seed) noexcept;
107  double random(double min_inclusive, double max_exclusive) noexcept;
150  double random(double max_exclusive) noexcept;
181  double random() noexcept;
211  int random(int min_inclusive, int max_exclusive) noexcept;
243  int random(int max_exclusive) noexcept;
245 }
void seed_random(unsigned int seed) noexcept
Sets the seed value for random().
double random(double min_inclusive, double max_exclusive) noexcept
Return a random floating-point number within the range [min,max)
Definition: angle.hpp:11