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

      Generate random number

      Codiga's TypeScript Recipes

      Generates a random number in the specified range.

      0 Comments

        Add Comment

        Log in to add a comment

        Codiga - All rights reserved 2022.