Current section

Files

Jump to
prng src prng.erl
Raw

src/prng.erl

-module(prng).
-compile([no_auto_import, nowarn_unused_vars]).
-export([main/0]).
-spec main() -> list(integer()).
main() ->
Dice_roll = prng@random:int(1, 6),
Ten_rolls = prng@random:list(Dice_roll, 10),
{Result, _} = prng@random:step(Ten_rolls, ffi:new_seed(11)),
gleam@io:debug(Result).