KCoreAddons

krandom.h
1 /*
2  This file is part of the KDE libraries
3 
4  SPDX-FileCopyrightText: 1999 Matthias Kalle Dalheimer <[email protected]>
5  SPDX-FileCopyrightText: 2000 Charles Samuels <[email protected]>
6  SPDX-FileCopyrightText: 2005 Joseph Wenninger <[email protected]>
7 
8  SPDX-License-Identifier: LGPL-2.0-or-later
9 */
10 
11 #ifndef KRANDOM_H
12 #define KRANDOM_H
13 
14 #include <kcoreaddons_export.h>
15 
16 #include <QString>
17 
27 namespace KRandom
28 {
29 #if KCOREADDONS_ENABLE_DEPRECATED_SINCE(5, 72)
30 
36 KCOREADDONS_DEPRECATED_VERSION(5, 72, "Use QRandomGenerator::global(). The 1:1 port is bounded(RAND_MAX) but check see all the methods that QRandomGenerator provides.")
37 KCOREADDONS_EXPORT int random();
38 #endif
39 
45 KCOREADDONS_EXPORT QString randomString(int length);
46 }
47 
48 #endif
49 
KCOREADDONS_EXPORT int random()
Generates a uniform random number.
Definition: krandom.cpp:32
Helper class to create random data.
Definition: krandom.h:27
KCOREADDONS_EXPORT QString randomString(int length)
Generates a random string.
Definition: krandom.cpp:59
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Thu Jul 9 2020 23:01:14 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.