Edited for code blocks. I recommend formatting code that you post, it helps others understand what’s going on to help you better.
In your case you wrote :string.to_integer but @tyro wrote String.to_integer. Elixir module names capitalized, erlang modules tend to be lower case. That’s why :rand.uniform uses lower case :rand, it’s an erlang module. String however is an Elixir module, you can find the documentation on it here: String — Elixir v1.20.2






















