Re: Why doesn't Math.random() work when animation starts again?
Originally Posted by wysota
Why are you posting in a wrong forum then?
As for your question -- QtQuick engine doesn't know that Math.random() returns a different result every time you call it and therefore it doesn't reevaluate the expression you are using because it would have to do that constantly over and over again. "n" is evaluated once and never again unless you bind a different expression to it.
sorry about wrong forum, I read some topics and I didn't realise it
Bookmarks