2024-08-25 04:08:24 +00:00
|
|
|
#ifndef GEN_QRANDOM_H
|
|
|
|
#define GEN_QRANDOM_H
|
|
|
|
|
|
|
|
#include <stdbool.h>
|
|
|
|
#include <stddef.h>
|
|
|
|
#include <stdint.h>
|
|
|
|
|
|
|
|
#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
|
|
|
|
|
2024-09-14 22:29:05 +00:00
|
|
|
#include "binding.h"
|
|
|
|
|
2024-08-25 04:08:24 +00:00
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
class QRandomGenerator;
|
|
|
|
class QRandomGenerator64;
|
|
|
|
#else
|
|
|
|
typedef struct QRandomGenerator QRandomGenerator;
|
|
|
|
typedef struct QRandomGenerator64 QRandomGenerator64;
|
|
|
|
#endif
|
|
|
|
|
|
|
|
QRandomGenerator* QRandomGenerator_new();
|
2024-08-29 07:01:51 +00:00
|
|
|
QRandomGenerator* QRandomGenerator_new2(const unsigned int* seedBuffer, size_t lenVal);
|
|
|
|
QRandomGenerator* QRandomGenerator_new3(const unsigned int* begin, const unsigned int* end);
|
2024-08-25 04:08:24 +00:00
|
|
|
QRandomGenerator* QRandomGenerator_new4(QRandomGenerator* other);
|
2024-08-29 07:01:51 +00:00
|
|
|
QRandomGenerator* QRandomGenerator_new5(unsigned int seedValue);
|
2024-08-25 04:08:24 +00:00
|
|
|
void QRandomGenerator_OperatorAssign(QRandomGenerator* self, QRandomGenerator* other);
|
2024-08-29 07:01:51 +00:00
|
|
|
unsigned int QRandomGenerator_Generate(QRandomGenerator* self);
|
|
|
|
unsigned long long QRandomGenerator_Generate64(QRandomGenerator* self);
|
2024-08-25 04:08:24 +00:00
|
|
|
double QRandomGenerator_GenerateDouble(QRandomGenerator* self);
|
|
|
|
double QRandomGenerator_Bounded(QRandomGenerator* self, double highest);
|
2024-08-29 07:01:51 +00:00
|
|
|
unsigned int QRandomGenerator_BoundedWithHighest(QRandomGenerator* self, unsigned int highest);
|
|
|
|
unsigned int QRandomGenerator_Bounded2(QRandomGenerator* self, unsigned int lowest, unsigned int highest);
|
2024-08-25 04:08:24 +00:00
|
|
|
int QRandomGenerator_Bounded3(QRandomGenerator* self, int highest);
|
|
|
|
int QRandomGenerator_Bounded4(QRandomGenerator* self, int lowest, int highest);
|
2024-08-29 07:01:51 +00:00
|
|
|
void QRandomGenerator_Generate2(QRandomGenerator* self, unsigned int* begin, unsigned int* end);
|
|
|
|
uint32_t QRandomGenerator_OperatorCall(QRandomGenerator* self);
|
2024-08-25 04:08:24 +00:00
|
|
|
void QRandomGenerator_Seed(QRandomGenerator* self);
|
|
|
|
void QRandomGenerator_Discard(QRandomGenerator* self, unsigned long long z);
|
2024-08-29 07:01:51 +00:00
|
|
|
uint32_t QRandomGenerator_Min();
|
|
|
|
uint32_t QRandomGenerator_Max();
|
2024-08-25 04:08:24 +00:00
|
|
|
QRandomGenerator* QRandomGenerator_System();
|
|
|
|
QRandomGenerator* QRandomGenerator_Global();
|
|
|
|
QRandomGenerator* QRandomGenerator_SecurelySeeded();
|
2024-08-29 07:01:51 +00:00
|
|
|
void QRandomGenerator_Seed1(QRandomGenerator* self, unsigned int s);
|
2024-08-25 04:08:24 +00:00
|
|
|
void QRandomGenerator_Delete(QRandomGenerator* self);
|
|
|
|
|
|
|
|
QRandomGenerator64* QRandomGenerator64_new();
|
2024-08-29 07:01:51 +00:00
|
|
|
QRandomGenerator64* QRandomGenerator64_new2(const unsigned int* seedBuffer, size_t lenVal);
|
|
|
|
QRandomGenerator64* QRandomGenerator64_new3(const unsigned int* begin, const unsigned int* end);
|
2024-08-25 04:08:24 +00:00
|
|
|
QRandomGenerator64* QRandomGenerator64_new4(QRandomGenerator* other);
|
|
|
|
QRandomGenerator64* QRandomGenerator64_new5(QRandomGenerator64* param1);
|
2024-08-29 07:01:51 +00:00
|
|
|
QRandomGenerator64* QRandomGenerator64_new6(unsigned int seedValue);
|
|
|
|
unsigned long long QRandomGenerator64_Generate(QRandomGenerator64* self);
|
|
|
|
uint64_t QRandomGenerator64_OperatorCall(QRandomGenerator64* self);
|
2024-08-25 04:08:24 +00:00
|
|
|
void QRandomGenerator64_Discard(QRandomGenerator64* self, unsigned long long z);
|
2024-08-29 07:01:51 +00:00
|
|
|
uint64_t QRandomGenerator64_Min();
|
|
|
|
uint64_t QRandomGenerator64_Max();
|
2024-08-25 04:08:24 +00:00
|
|
|
QRandomGenerator64* QRandomGenerator64_System();
|
|
|
|
QRandomGenerator64* QRandomGenerator64_Global();
|
|
|
|
QRandomGenerator64* QRandomGenerator64_SecurelySeeded();
|
|
|
|
void QRandomGenerator64_OperatorAssign(QRandomGenerator64* self, QRandomGenerator64* param1);
|
|
|
|
void QRandomGenerator64_Delete(QRandomGenerator64* self);
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
} /* extern C */
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif
|