Random giving 0 all the time.
#3

Quote:
Originally Posted by Vince
Посмотреть сообщение
Nothing wrong the initializers. Possibly an out of bound error of some sort. Try printing the values right after you assign them.

Sidenote: Why don't you use one variable to keep track of the cards? Spades 1 - 13, Clubs 14 - 26, Diamonds 27 - 39, Hearts 40 - 52.
The mistake was on checking. Fixed it.

SideNote: Hmm, good idea. Will give it a try. Making a Poker system is damn hard. xD
Reply


Messages In This Thread
Random giving 0 all the time. - by ricardo178 - 27.07.2012, 13:52
Re: Random giving 0 all the time. - by Vince - 27.07.2012, 14:15
Re : Re: Random giving 0 all the time. - by ricardo178 - 27.07.2012, 15:18

Forum Jump:


Users browsing this thread: 1 Guest(s)