10 lines
203 B
Python
10 lines
203 B
Python
|
import random
|
||
|
|
||
|
|
||
|
def rand(n: int, r: random.Random):
|
||
|
return int(r.random() * n)
|
||
|
|
||
|
|
||
|
def transform(data, num_sample: int, r: random.Random):
|
||
|
return {"input": data["input"], "output": data["output"]}
|