libscratchcpp
A library for C++ based Scratch project players
Toggle main menu visibility
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
7
namespace
libscratchcpp
8
{
9
11
class
LIBSCRATCHCPP_EXPORT
IRandomGenerator
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
libscratchcpp::IRandomGenerator
The IRandomGenerator interface represents a random number generator that can be received e....
Definition
irandomgenerator.h:12
libscratchcpp::IRandomGenerator::randint
virtual long randint(long start, long end) const =0
libscratchcpp::IRandomGenerator::randintExcept
virtual long randintExcept(long start, long end, long except) const =0
libscratchcpp::IRandomGenerator::randintDouble
virtual double randintDouble(double start, double end) const =0
libscratchcpp::IRandomGenerator::~IRandomGenerator
virtual ~IRandomGenerator()
Definition
irandomgenerator.h:14
global.h
LIBSCRATCHCPP_EXPORT
#define LIBSCRATCHCPP_EXPORT
Definition
global.h:17
libscratchcpp
The main namespace of the library.
Definition
asset.h:10
include
scratchcpp
irandomgenerator.h
Generated by
1.17.0