How Lottery system work for 2014 H1

If USCIS decide to do lottery because of high volume than how it will work ?

If they generate the receipt number for my case than is it safe sign for me or there are chances that they will put my case in lottery ?

Your answer would be appreciated