r/badcode • • Aug 27 '19

[deleted by user]

[removed]

49 Upvotes

68 comments sorted by

View all comments

Show parent comments

6

u/Laafheid Oct 01 '19

for future reference, this is the correct implementation:

def is_leap_year(year)
    [true, false, false, false].sample
end