Popularity
2.5
Declining
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.
-
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] ๐ -
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
DISCONTINUED. 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) -
portal
DISCONTINUED. A tutorial for shooting fault-tolerant portals for distributed data-transfer application in Elixir
InfluxDB - Purpose built for real-time analytics at any scale.
InfluxDB Platform is powered by columnar analytics, optimized for cost-efficient storage, and built with open data standards.
Promo
www.influxdata.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}