class QRandomGenerator64#

The QRandomGenerator64 class allows one to obtain 64-bit random values from a high-quality, seed-less Random Number Generator. More

Inheritance diagram of PySide6.QtCore.QRandomGenerator64

Synopsis#

Methods#

Note

This documentation may contain snippets that were automatically translated from C++ to Python. We always welcome contributions to the snippet translation. If you see an issue with the translation, you can also let us know by creating a ticket on https:/bugreports.qt.io/projects/PYSIDE

Detailed Description#

QRandomGenerator64 is a simple adaptor class around QRandomGenerator , making the generate64() function the default for operator() (), instead of the function that returns 32-bit quantities. This class is intended to be used in conjunction with Standard Library algorithms that need 64-bit quantities instead of 32-bit ones.

In all other aspects, the class is the same. Please refer to QRandomGenerator ‘s documentation for more information.

See also

QRandomGenerator

__init__(other)#
Parameters:

otherQRandomGenerator

__init__(begin, end)
Parameters:
  • beginquint32

  • endquint32

__init__(seedBuffer, len)
Parameters:
  • seedBufferquint32

  • len – int

__init__([seedValue=1])
Parameters:

seedValue – int