[Qt-interest] QML Math.random()

Colin Kern colin.kern at gmail.com
Fri Oct 22 03:49:25 CEST 2010


Hi,

I'm using Math.random() in a javascript function from QML, and it's
generating the same sequence of numbers each time.  Everything I can
find online says that javascript seeds the random number generator
with the current time. Does Qt's implementation require it to be
seeded differently?

Thanks,
Colin Kern



More information about the Qt-interest-old mailing list