We're a place where coders share, stay up-to-date and grow their careers.
Middle square method without string manipulation:
function myRandom() { seed = Math.floor(((seed ** 2) % 1000) / 10); return seed; }
Wow! Great work 👍👏👏👏! Why didn't I think of this? 😁
Middle square method without string manipulation:
Wow! Great work 👍👏👏👏! Why didn't I think of this? 😁