Instantly share code, notes, and snippets.


Keybase proof

I hereby claim:

  • I am gbxl on github.
  • I am lucasgb ( on keybase.
  • I have a public key ASCLedGZ6IpwwzBG2V3MsrAOa_0Eokk1jdLHRYsRBcwetQo

To claim this, I am signing this object:

View elixir_byte_gen.ex
defmodule Genetic do
def generate(l, r) when l <= 0, do: r
def generate(l, r), do: generate(l-1, r <> Enum.random([<< 48 >>, << 49 >>]))
def generate(length), do: generate(length, <<>>)