Review Request: Convenience KRandom methods

Sean Harmer sh at
Fri Aug 13 10:31:16 BST 2010


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)?


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