def make_samplers(self, device: torch.device, dtype: torch.dtype) -> None:
        r"""Create samplers for generating random noise parameters."""
        amount = _range_bound(
            self.amount,
            "amount",
        ).to(device, dtype)
        salt_and_pepper = _range_bound(
            self.salt_and_pepper,
            "salt_and_pepper",
        ).to(device, dtype)

        self.amount_sampler = UniformDistribution(amount[0], amount[1], validate_args=False)
        self.salt_and_pepper_sampler = UniformDistribution(salt_and_pepper[0], salt_and_pepper[1], validate_args=False)
Create samplers for generating random noise parameters.
kornia/augmentation/random_generator/_2d/salt_pepper_noise.py