MCPcopy Create free account
hub / github.com/TheAlgorithms/Python / make_dataset

Function make_dataset

maths/triplet_sum.py:14–17  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

12
13
14def make_dataset() -> tuple[list[int], int]:
15 arr = [randint(-1000, 1000) for i in range(10)]
16 r = randint(-5000, 5000)
17 return (arr, r)
18
19
20dataset = make_dataset()

Callers 1

triplet_sum.pyFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected