MCPcopy Create free account
hub / github.com/Project-MONAI/MONAI / randomize

Method randomize

monai/data/image_dataset.py:99–100  ·  view source on GitHub ↗
(self, data: Any | None = None)

Source from the content-addressed store, hash-verified

97 return len(self.image_files)
98
99 def randomize(self, data: Any | None = None) -> None:
100 self._seed = int(self.R.randint(MAX_SEED, dtype="uint32"))
101
102 def __getitem__(self, index: int):
103 self.randomize()

Callers 1

__getitem__Method · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected