Furthermore, you have other errors as well.
(1) You never initialize chance, it will probably have some junk value in it, which is undefined behavior.
(2) do you want chance to be an int or a bool? You declare it as an int, but then assign it true, false, as well as other random numbers. It's a misleading to assign a boolean value to an int, because it will just be converted to 0 or 1 anyway.