Jump to content
karl Jonson

Hex2Binary

Recommended Posts

@Mahdi Safsafi Optimized it:

 

{$O+}
function foo(I: Integer): Integer;
begin
  case I of
    0: Exit(random(255));
    1..5: Exit(i+2);
//    2: Exit(4);
//    3: Exit(5);
//    4: Exit(6);
//    5: Exit(7);
  else
    Exit(0);
  end;
end;

Scnr :classic_laugh::classic_tongue:

  • Haha 2

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×