       iex> FunWithFlags.enabled?(:random_glitch)
       true
 
+  ### Disable for a percentage of the actors
+
+      iex> FunWithFlags.disable(:new_ui, for_percentage_of: {:actors, 0.3})
+      {:ok, false}
+
   """
   @spec disable(atom, options) :: {:ok, false}
   def disable(flag_name, options \\ [])

  end


  def disable(flag_name, [for_percentage_of: {:time, ratio}])
  when is_atom(flag_name) and is_float(ratio) do
    inverted_ratio = 1.0 - ratio
    {:ok, true} = enable(flag_name, [for_percentage_of: {:time, inverted_ratio}])
    {:ok, false}
  end


      iex> FunWithFlags.enabled?(:random_glitch)
      false

  ### Enable for a percentage of the actors

  This example is based on the fact that the actor score for the actor-flag pair
  `marty + :new_ui` is lower than 50%, and for the `buford + :new_ui` is higher.

      iex> FunWithFlags.disable(:new_ui)
      iex> FunWithFlags.enable(:new_ui, for_percentage_of: {:actors, 0.5})
      iex> FunWithFlags.enabled?(:new_ui)
      false
      iex> alias FunWithFlags.TestUser, as: User
      iex> marty = %User{id: 42, name: "Marty McFly"}
      iex> buford = %User{id: 2, name: "Buford Tannen"}
      iex> FunWithFlags.enabled?(:new_ui, for: marty)
      true
      iex> FunWithFlags.enabled?(:new_ui, for: buford)
      false

  """
  @spec enable(atom, options) :: {:ok, true}
  def enable(flag_name, options \\ [])
