You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A student may be able to make a program that correctly follows the specification using this implementation and still fails check50.
This will fail check50 despite producing numbers in the correct range per the specification. The problem set could make this explicit by checking if the student uses random.randrange() or random.randint() and checking for different results depending on the implementation.
Alternatively, make the required methods explicitly required in some way.
The text was updated successfully, but these errors were encountered:
Makaze
changed the title
CS50P Week 4 Pset "Little Professor" doesn't work with valid, but hand-made, randint function
CS50P Week 4 Psets "Guessing Game" and "Little Professor" fail check50 work with valid, but hand-made, randint functions
Dec 26, 2023
Many languages, e.g. JavaScript, use the same type of
random()
which generates between[0,1)
and suggest the followingrandrange()
implementation:A student may be able to make a program that correctly follows the specification using this implementation and still fails check50.
This will fail check50 despite producing numbers in the correct range per the specification. The problem set could make this explicit by checking if the student uses
random.randrange()
orrandom.randint()
and checking for different results depending on the implementation.Alternatively, make the required methods explicitly required in some way.
The text was updated successfully, but these errors were encountered: