I don't get a large straight every time I play yahtzee, so you shouldn't expect to get all 1-100.
This isn't used:
int array [100];
And your code formatting is terrible.

Turn your warning...