3 ms·
-module(opine). -export([opine/0]). opine() -> io:format("I ~s the new website.~n",[gen_opine(random:uniform())]). gen_opine(R) when R > 0
by nivertech 16y ago
-module(opine).
-export([opine/0]).
opine() ->
io:format("I ~s the new website.~n",[gen_opine(random:uniform())]).
gen_opine(R) when R > 0.2 -> love;
gen_opine(_) -> hate.