Skip to content
Sign upLog in
← Back to Community

Rand function is not working

Profile icon
ChimaNwosu1

Hey guys, If you look on the class.h file and scroll down to line 71-74 you will see the the rand() function being used. However, when this code is being implemented when "O" hits the fruit "F", the "F " eventually disappears from the screen as if the parameter width and height are nonexistent. How can I solve this problem?

Voters
Profile icon
ChimaNwosu1
Comments
hotnewtop
Profile icon
DynamicSquid

It seems to be working fine for me...

Profile icon
ChimaNwosu1

@DynamicSquid
Yea that's the thing keep doing it until the score is 30 it will eventually disappear midway.