Skip to content

Instantly share code, notes, and snippets.

@electronicayciencia
Created April 3, 2017 19:46
Show Gist options
  • Save electronicayciencia/7efea3793c80b164f96d7b9126a7f3cd to your computer and use it in GitHub Desktop.
Save electronicayciencia/7efea3793c80b164f96d7b9126a7f3cd to your computer and use it in GitHub Desktop.
if (v == 1) && (v ~= last_v) % raising edge
if (rand >= 1/fcounter_max)
icounter = icounter + 1;
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment