roc-lang / book-of-examples

Software Design by Example in Roc
Other
23 stars 15 forks source link

topic proposal: pseudorandom number generators #30

Open rtfeldman opened 2 months ago

rtfeldman commented 2 months ago

We already have an implementation of PCG pseudorandom number generation in roc-random but implementing random generators in a purely functional language seems like a good fit for this book because:

nathanielknight commented 1 month ago

(Copied from Zulip)

I think I'm interested in contributing to the chapter on PRNGs. I don't have a lot of Roc experience, but I'm comfortable with numerical programming and technical writing.

I think something in the PCG family of RNGs would be a good one to use; it's got good numerical properties and is very compact.

In terms of content, I'd see the following sections: