21 template <
typename T>
Expression * Randint::templateApproximate(
Context & context, AngleUnit angleUnit)
const {
27 T a =
static_cast<Complex<T> *
>(aInput)->toScalar();
28 T b =
static_cast<Complex<T> *
>(bInput)->toScalar();
35 T result =
std::floor(Random::random<T>()*(b+1.0-a)+a);
Expression * approximate(Context &context, AngleUnit angleUnit=AngleUnit::Default) const
Expression * clone() const override
const Expression * m_operands[T]
static Complex< T > Float(T x)
const Expression * operand(int i) const
virtual Type type() const =0
Type type() const override