Popularity
2.5
Growing
Activity
0.0
Stable
15
3
1
Monthly Downloads: 2
Programming language: Elixir
License: MIT License
Tags:
Examples And Funny Stuff
dice alternatives and similar packages
Based on the "Examples and funny stuff" category.
Alternatively, view dice alternatives based on common mentions on social networks and blogs.
-
changelog.com
Changelog is news and podcast for developers. This is our open source platform. -
magnetissimo
Web application that indexes all popular torrent sites, and saves it to the local database. -
phoenix-chat-example
๐ฌ The Step-by-Step Beginners Tutorial for Building, Testing & Deploying a Chat app in Phoenix 1.7 [Latest] ๐ -
real world example app
Exemplary real world application built with Elixir + Phoenix -
phoenix-liveview-counter-tutorial
๐คฏ beginners tutorial building a real time counter in Phoenix 1.7.7 + LiveView 0.19 โก๏ธ Learn the fundamentals from first principals so you can make something amazing! ๐ -
phoenix-ecto-encryption-example
๐ A detailed example for how to encrypt data in an Elixir (Phoenix v1.7) App before inserting into a database using Ecto Types -
coderplanets.com
coderplanets.com API(GraphQL) server, build with elixir, phoenix, absinthe -
phoenix-todo-list-tutorial
โ Complete beginners tutorial building a todo list from scratch in Phoenix 1.7 (latest) -
phoenix-flux-react
An experiment with Phoenix Channels, GenEvents, React and Flux. -
hello_phoenix
Application template for SPAs with Phoenix, React and Redux -
portal
A tutorial for shooting fault-tolerant portals for distributed data-transfer application in Elixir -
ex_iss
An elixir wrapper for Open Notify's International Space Station API. http://open-notify.org/
WorkOS - The modern identity platform for B2B SaaS
The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.
Promo
workos.com
Do you think we are missing an alternative of dice or a related project?
README
Dice
Test the results of rolling different sided dice.
Add as Dependency
{:dice, "~> 0.0.1"}
Build CLI App
mix escript.build
Run CLI App
./dice $num_trials $num_sides_die_1 $num_sides_die_2 $num_sides_die_3 ...
Use Library
# Create 2 x 6-sided die
dice = Dice.new([6, 6])
# Roll the dice
result = Dice.roll(dice)
# => 7
# Run several trials of the dice
results = Dice.trials(dice, 1000)
# => %{2 => 19, 3 => 52, 4 => 53, 5 => 81, 6 => 89, 7 => 167, 8 => 158, 9 => 118, 10 => 118, 11 => 86, 12 => 59}