mirror of
https://github.com/DeaDvey/mathgenerator.git
synced 2025-11-28 14:35:23 +01:00
renamed main generator funcs to gen_func
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
from .__init__ import *
|
||||
|
||||
|
||||
def DecimalToBinaryFunc(max_dec=99, format='string'):
|
||||
def gen_func(max_dec=99, format='string'):
|
||||
a = random.randint(1, max_dec)
|
||||
b = bin(a).replace("0b", "")
|
||||
|
||||
@@ -15,5 +15,5 @@ def DecimalToBinaryFunc(max_dec=99, format='string'):
|
||||
return a, str(b)
|
||||
|
||||
|
||||
decimal_to_binary = Generator("Decimal to Binary", 14, DecimalToBinaryFunc,
|
||||
decimal_to_binary = Generator("Decimal to Binary", 14, gen_func,
|
||||
["max_dec=99"])
|
||||
|
||||
Reference in New Issue
Block a user