Review Request: Convenience KRandom methods

Sean Harmer sh at theharmers.co.uk
Fri Aug 13 10:31:16 BST 2010


Hi,

On Thursday 12 August 2010 20:33:11 Sebastian Trueg wrote: 
> And this is exactly why it makes so much sense to put it in kdecode. There
> are thousands of ways to get this wrong. I only showed two so far. ;) And
> btw: I do not think this is simple. That is why I want your feedback. I
> will look at the boost approach and have another go at it.

Why not just use KRandomSequence::getDouble() which returns uniform variate on 
the range [0,1) or KRandomSequence::getLong( unsigned long max ) which returns 
a uniform integer variate on the range [0,max)?

Sean

-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.





More information about the kde-core-devel mailing list