hello friend, why random generator always show same number ?```
@veysel.olgun said in random number:
You're using deprecated functions. You should rather use http://doc.qt.io/qt-5/qrandomgenerator.html
seeds rand with the seconds since the epoch.
I would think you end up seeding again in a much quicker time than 1 sec -> next rand is again seeded and calculated the same way -> same "random"-number
Be aware of the Qt Code of Conduct, when posting : https://forum.qt.io/topic/113070/qt-code-of-conduct
Qt Needs YOUR vote: https://bugreports.qt.io/browse/QTQAINFRA-4121
Q: What's that?
A: It's blue light.
Q: What does it do?
A: It turns blue.
i understand now , when i write
it works fine
thank you all