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
One more type from base that is missing some instances.
I think I can see a lawful implementation for HasResolution e => UniformRange (Fixed e) instance. Also considering that we already have instance Random Integer we can definitely add instance HasResolution e => Random (Fixed e)
For a change I think UniformRange is perfectly reasonable instance. Only question is what should random return? I think it should follow Dounle/Float/proposed instance for Rationals and return numbers in [0,1] range.
Activity
Shimuuar commentedon Jul 1, 2020
For a change I think UniformRange is perfectly reasonable instance. Only question is what should
randomreturn? I think it should follow Dounle/Float/proposed instance for Rationals and return numbers in [0,1] range.lehins commentedon Jul 1, 2020
Yes, [0, 1] range for
Randomis also what I had in mind.