libscratchcpp
A library for C++ based Scratch project players
Loading...
Searching...
No Matches
irandomgenerator.h
Go to the documentation of this file.
1// SPDX-License-Identifier: Apache-2.0
2
3#pragma once
4
5#include "global.h"
6
7namespace libscratchcpp
8{
9
12{
13 public:
14 virtual ~IRandomGenerator() { }
15
17 virtual long randint(long start, long end) const = 0;
18
20 virtual double randintDouble(double start, double end) const = 0;
21
23 virtual long randintExcept(long start, long end, long except) const = 0;
24};
25
26} // namespace libscratchcpp
The IRandomGenerator interface represents a random number generator that can be received e....
Definition irandomgenerator.h:12
virtual long randint(long start, long end) const =0
virtual long randintExcept(long start, long end, long except) const =0
virtual double randintDouble(double start, double end) const =0
virtual ~IRandomGenerator()
Definition irandomgenerator.h:14
#define LIBSCRATCHCPP_EXPORT
Definition global.h:17
The main namespace of the library.
Definition asset.h:10