const randomBoolean = () => Math.random() >= 0.5;
      
      Typescript language logo

      Random boolean

      Codiga's TypeScript Recipes

      Generates a random boolean value.

      0 Comments

        Add Comment

        Log in to add a comment

        Codiga - All rights reserved 2022.