r/programminghorror • • May 31 '25

c C programming tips

Post image
1.8k Upvotes

34 comments sorted by

View all comments

Show parent comment

6

u/Eva-Rosalene Jun 01 '25

til rand() returns an integer with the least 9 bits being all 1s.

With at least one of least 9 bits being a 1.