Gaussian with random numbers

Hi @Danilo @Dilicus

When I run this function in ROOT 6.32.02, Ubuntu 24.04.1 LTS, gcc (conda-forge gcc 13.3.0-1) 13.3.0

I find this error:
cling::DynamicLibraryManager::loadLibrary(): libgsl.so.25: cannot open shared object file: No such file or directory
Error in TInterpreter::TCling::AutoLoad: failure loading library libMathMore.so for ROOT::Math::GSLIntegrator
cling::DynamicLibraryManager::loadLibrary(): libgsl.so.25: cannot open shared object file: No such file or directory

Warning in ROOT::Math::IntegratorOneDim::CreateIntegrator: Error loading one dimensional GSL integrator - use Gauss integrator

I have included:

#include “TSystem.h”
#include “Math/SpecFunc.h”
#include “Math/WrappedTF1.h”
#include “Math/GSLIntegrator.h”

and

gSystem->Load(“libMathMore”); inside the macro

but still it is showing the error.

Any help?