From cc275a93d07cb2ed73006790d5b7c06c30ae88f4 Mon Sep 17 00:00:00 2001 From: olivierdalang Date: Fri, 13 Dec 2019 15:09:35 +0100 Subject: [PATCH] (typo) --- src/core/expression/qgsexpressionfunction.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/expression/qgsexpressionfunction.cpp b/src/core/expression/qgsexpressionfunction.cpp index 9573b3b63be..52ffb24bdf1 100644 --- a/src/core/expression/qgsexpressionfunction.cpp +++ b/src/core/expression/qgsexpressionfunction.cpp @@ -395,7 +395,7 @@ static QVariant fcnRndF( const QVariantList &values, const QgsExpressionContext generator.seed( seed ); } - // Return a random integer in the range [min, max] (inclusive) + // Return a random double in the range [min, max] (inclusive) double f = static_cast< double >( generator() ) / generator.max(); return QVariant( min + f * ( max - min ) ); }