Last visit 11 hours ago



  • 0
  • 0
Evgenij LegotskojDec. 14, 2017, 5:10 p.m.

QtQt/C++ - Tutorial 074. Generating pseudo-random numbers, using STD library random

QRandomGenerator, C++11, qrand, qsrand, Random, Qt

Generating random numbers may be needed, for example, to calculate weapon damage in a computer game or to represent a graph from random numbers.

Qt provides the qrand function for generating random numbers, and also, starting with Qt 5.10 , the QRandomGenerator class.

Let's see how random values can be obtained in Qt, and how random they are.


Let me recommend you the excellent hosting on which EVILEG is located.

For many years, Timeweb has been proving his stability.

For projects on Django I recommend VDS hosting

View Hosting