this question has answer here:
i couldn't find material regarding using gnu scientific library in swift under linux. possible? if so, how?
for example, interested in generating random numbers normal distribution gsl_ran_gaussian
.
it should possible using, example, system modules. see question: use c library in swift on linux
yet approach in answers question: compile c code , expose swift under linux
if want use small subset of api, might save effort writing c wrapper around needed functionality , calling wrapper swift.