1 #ifndef POINCARE_RANDOM_H 2 #define POINCARE_RANDOM_H 16 template<
typename T>
static T random();
23 int writeTextInBuffer(
char * buffer,
int bufferSize,
int numberOfSignificantDigits = PrintFloat::k_numberOfStoredSignificantDigits)
const override {
26 const char * name()
const {
return "random"; }
29 return templateApproximate<float>();
32 return templateApproximate<double>();
34 template <
typename T>
Expression * templateApproximate()
const {
Expression * clone() const override
Sign sign() const override
Type type() const override
static ExpressionLayout * createPrefixLayout(const Expression *expression, PrintFloat::Mode floatDisplayMode, Expression::ComplexFormat complexFormat, const char *operatorName)
static Complex< T > Float(T x)
static int writePrefixExpressionTextInBuffer(const Expression *expression, char *buffer, int bufferSize, int numberOfDigits, const char *operatorName)