const randomIntegerInRange = (min: number, max: number) =>
        Math.floor(Math.random() * (max - min + 1)) + min;
      
      Typescript language logo

      Generate random integer

      Codiga's TypeScript Recipes

      Generates a random integer in the specified range.

      0 Comments

        Add Comment

        Log in to add a comment

        Codiga - All rights reserved 2022.