mirror of
https://github.com/DeaDvey/mathgenerator.git
synced 2025-11-28 06:25:23 +01:00
13 lines
365 B
Python
13 lines
365 B
Python
from .__init__ import *
|
|
from ..__init__ import Generator
|
|
|
|
|
|
def vectorDotFunc(minVal=-20, maxVal=20):
|
|
a = [random.randint(minVal, maxVal) for i in range(3)]
|
|
b = [random.randint(minVal, maxVal) for i in range(3)]
|
|
c = a[0] * b[0] + a[1] * b[1] + a[2] * b[2]
|
|
|
|
problem = str(a) + " . " + str(b) + " = "
|
|
solution = str(c)
|
|
return problem, solution
|