There's no way I could do something as polished as GSL's implementations in
a short time, so I decided to wrap them for Guile. I didn't see anyone
else's project that did this. It's been a while since I have done anything
useful in Guile, but here is my first take on some wrappers around GSL
random functions. There are a collection of floating point and integer
random variate generators, and probability distribution functions for most
of them (except Levy distribution, IIRC).

Since I sort of just hacked this together, there are no tests, and no sane
way of packaging it other than build it and use it from the current working
directory ... sorry ...

https://codeberg.org/n3tizen/guile_gsl_random

On Mon, Jun 1, 2026 at 8:17 AM Tim Meehan <[email protected]> wrote:

> I thought I had made one, but can't find it.
> I'll post something onto codeberg in a bit. I'm far from some expert in
> probability and statistics, but I am sure that there are people who
> actually are who can see where my train of thought was leading.
>
> On Mon, Jun 1, 2026 at 6:07 AM Zelphir Kaltstahl <
> [email protected]> wrote:
>
>>
>> On 5/28/26 3:43 PM, Tim Meehan wrote:
>>
>> I wind up doing Monte-Carlo simulations a lot, and sometimes I do them in
>> Guile. Just feels more fun than Python or some other language sometimes.
>>
>> Once a language has a "uniform" generator (i.e., real numbers from 0 to
>> 1) it is pretty straightforward to give it a lot of other random
>> generators. I thought I saw a library somewhere that had a lot of them in
>> Guile, but I couldn't find it when you asked the question. I'd be happy to
>> post all of the ones I know how to do off of the top of my head somewhere,
>> like on Codeberg. I've been trying to move off of Github.
>>
>> Please do share any repos, and also any methods with their code (for
>> generating other random number generators from uniform ones) you know of!
>>
>> Best regards,
>> Zelphir
>>
>> --
>> repositories: https://codeberg.org/ZelphirKaltstahl
>>
>>

Reply via email to