Answer: The tradition of casting lots is referenced several times in the Bible. A variety of objects were used to cast a lot, depending on the place and local customs, such as coins, polished sticks, cards, dice, and so on. We today carry out a form of this ancient custom whenever we throw a dice or flip a coin.
The primary reason for performing this act was to render an impartial, unbiased decision on important matters. Once the lot was cast, no one could argue that the decision was the result of human intervention like nepotism, politics, favoritism, and so on.
Religiously used
What is particularly significant is the fact that, in ancient Israel, the High Priest used from time to time the tradition of casting lots for important decisions. It amounted to consulting God for an answer as is confirmed by the book of Proverbs.
The lot is cast into the lap, but the whole disposing of it is from the Lord (Proverbs 16:33, HBFV).

This impartial practice stops arguments and contentions between people (and no doubt could prevent them from occurring in the first place). In this regard Proverbs states, "Casting lots causes contentions to cease, and keeps the mighty apart" (Proverbs 18:18).
The last recorded use of casting lots in the Bible is in Acts chapter 1. It occurred when the early church, knowing they needed someone to replace Judas Iscariot as an apostle, asked for God to select one of two men for the awesome responsibility of preaching the gospel.
Then they cast their lots; and the lot fell on Matthias, and he was numbered with the eleven apostles (Acts 1:26, HBFV).
Humans, for countless ages, have used mediums, readers of cards, palm readers and so on to help them make decisions and plan for the future. God condemns, as made abundantly clear in Deuteronomy 18, these occult practices.
There is nothing wrong, however, with a modern version of casting lots like flipping a coin to arrive at a decision or determine a winner. When done, however, it is important to remember that chance produces the outcome with no additional meaning attached to it.