mirror of
https://github.com/JS8Call-improved/JS8Call-improved
synced 2026-08-13 17:47:36 -04:00
This used to be a catch-all for a variety of things that are no longer relevant; merging the current WSJTX version, which contains only a very simple gran() function.
10 lines
235 B
C++
10 lines
235 B
C++
#include "getfile.h"
|
|
#include <random>
|
|
#include <QRandomGenerator>
|
|
|
|
/* Generate gaussian random float with mean=0 and std_dev=1 */
|
|
float gran()
|
|
{
|
|
static std::normal_distribution<float> d;
|
|
return d (*QRandomGenerator::global ());
|
|
}
|