How do they find this number? By guessing at random. The hash function makes it impossible to predict what the output will be. So, miners guess the mystery number and apply the hash function to the combination of that guessed number and the data in the block. The resulting hash has to start with a pre-established number of zeroes. There's no way of knowing which number will work, because two consecutive integers will give wildly varying results. What's more, there may be several nonces that produce the desired result, or there may be none (in which case the miners keep trying, but with a different block configuration).
Exchanges, however, are a different story. Perhaps the most notable Bitcoin exchange hack was the Tokyo-based MtGox hack in 2014, where 850,000 bitcoins with a value of over $350 million suddenly disappeared from the platform. This doesn’t mean that Bitcoin itself was hacked; it just means that the exchange platform was hacked. Imagine a bank in Iowa is robbed: the USD didn’t get robbed, the bank did.
In exchange for securing the network, and as the “lottery price” that serves as an incentive for burning this energy, each new block includes a special transaction. It’s this transaction that awards the miner with new bitcoins, which is how bitcoins first come into circulation. At Bitcoin’s launch, each new block awarded the miner with 50 bitcoins, and this amount halves every four years: Currently each block includes 12.5 new bitcoins. Additionally, miners get to keep any mining fees that were attached to the transactions they included in their blocks.

During mining, your Bitcoin mining hardware runs a cryptographic hashing function (two rounds of SHA256) on what is called a block header. For each new hash that is tried, the mining software will use a different number as the random element of the block header, this number is called the nonce. Depending on the nonce and what else is in the block the hashing function will yield a hash which looks something like this:
There are many Bitcoin supporters who believe that digital currency is the future. Those who endorse it are of the view that it facilitates a much faster, no-fee payment system for transactions across the globe. Although it is not itself any backed by any government or central bank, bitcoin can be exchanged for traditional currencies; in fact, its exchange rate against the dollar attracts potential investors and traders interested in currency plays. Indeed, one of the primary reasons for the growth of digital currencies like Bitcoin is that they can act as an alternative to national fiat money and traditional commodities like gold.
Difficulty increase per year: This is probably the most important and elusive variable of them all. The idea is that since no one can actually predict the rate of miners joining the network, neither can anyone predict how difficult it will be to mine in six weeks, six months, or six years from now. In fact, in all the time Bitcoin has existed, its profitability has dropped only a handful of times—even at times when the price was relatively low.
The counterargument is that the blockchain economy is still in its infancy. The “monetized code” that underlies the blockchain concept can be written to carry any sort of information securely, and to administer virtually any kind of transaction, contractual arrangement or other data-driven relationship between humans and their proliferating machines. In the future, supporters say, banks and other large institutions and even governments will run internal blockchains. Consumer product companies and tech companies will use blockchain to manage the “internet of things.” Within this ecosystem, we’ll see a range of cryptos playing different roles, with bitcoin perhaps serving as an investment, while more nimble cryptos can carry out everyday transactions. And the reality is, whatever its flaws, bitcoin’s success and fame thus far makes the whole crypto phenomenon harder to dislodge with every trading cycle.

In March 2013 the blockchain temporarily split into two independent chains with different rules. The two blockchains operated simultaneously for six hours, each with its own version of the transaction history. Normal operation was restored when the majority of the network downgraded to version 0.7 of the bitcoin software.[36] The Mt. Gox exchange briefly halted bitcoin deposits and the price dropped by 23% to $37[37][38] before recovering to previous level of approximately $48 in the following hours.[39] The US Financial Crimes Enforcement Network (FinCEN) established regulatory guidelines for "decentralized virtual currencies" such as bitcoin, classifying American bitcoin miners who sell their generated bitcoins as Money Service Businesses (MSBs), that are subject to registration or other legal obligations.[40][41][42] In April, exchanges BitInstant and Mt. Gox experienced processing delays due to insufficient capacity[43] resulting in the bitcoin price dropping from $266 to $76 before returning to $160 within six hours.[44] The bitcoin price rose to $259 on 10 April, but then crashed by 83% to $45 over the next three days.[34] On 15 May 2013, US authorities seized accounts associated with Mt. Gox after discovering it had not registered as a money transmitter with FinCEN in the US.[45][46] On 23 June 2013, the US Drug Enforcement Administration (DEA) listed 11.02 bitcoins as a seized asset in a United States Department of Justice seizure notice pursuant to 21 U.S.C. § 881.[47] This marked the first time a government agency had seized bitcoin.[48][49] The FBI seized about 26,000 bitcoins in October 2013 from the dark web website Silk Road during the arrest of Ross William Ulbricht.[50][51][52] Bitcoin's price rose to $755 on 19 November and crashed by 50% to $378 the same day. On 30 November 2013 the price reached $1,163 before starting a long-term crash, declining by 87% to $152 in January 2015.[34] On 5 December 2013, the People's Bank of China prohibited Chinese financial institutions from using bitcoins.[53] After the announcement, the value of bitcoins dropped,[54] and Baidu no longer accepted bitcoins for certain services.[55] Buying real-world goods with any virtual currency had been illegal in China since at least 2009.[56]