mirror of
https://github.com/DeaDvey/mathgenerator.git
synced 2025-11-28 14:35:23 +01:00
Flake for 797+ lines
This commit is contained in:
@@ -1,4 +1,3 @@
|
|||||||
# for lint
|
|
||||||
import random
|
import random
|
||||||
import math
|
import math
|
||||||
import fractions
|
import fractions
|
||||||
@@ -783,6 +782,7 @@ def quadraticEquation(maxVal=100):
|
|||||||
solution = str([round((-b + D) / (2 * a), 2), round((-b - D) / (2 * a), 2)])
|
solution = str([round((-b + D) / (2 * a), 2), round((-b - D) / (2 * a), 2)])
|
||||||
return problem, solution
|
return problem, solution
|
||||||
|
|
||||||
|
|
||||||
def hcfFunc(maxVal=20):
|
def hcfFunc(maxVal=20):
|
||||||
a = random.randint(1, maxVal)
|
a = random.randint(1, maxVal)
|
||||||
b = random.randint(1, maxVal)
|
b = random.randint(1, maxVal)
|
||||||
@@ -793,6 +793,7 @@ def hcfFunc(maxVal=20):
|
|||||||
solution = str(x)
|
solution = str(x)
|
||||||
return problem, solution
|
return problem, solution
|
||||||
|
|
||||||
|
|
||||||
def DiceSumProbFunc(maxDice=3):
|
def DiceSumProbFunc(maxDice=3):
|
||||||
a = random.randint(1, maxDice)
|
a = random.randint(1, maxDice)
|
||||||
b = random.randint(a, 6 * a)
|
b = random.randint(a, 6 * a)
|
||||||
|
|||||||
Reference in New Issue
Block a user