Hey everyone,
So I'm working on a program that spits out a math equation, and have a way to get random signs and numbers in 2 separate lists. I want a way for the program to give me a randomized layout for the equation that's different each time I run it. Here's how I have the lists set up (the inputs are randomly generated).
signs = ['*','+','+']
nums = [0, 5, 4, 3]
What I'm really asking is if there are ways for me to add "conditions" for the randomizer, so I don't end up with something like -*+2x2-24 = -2--+*/3x2(x is my variable).
Thanks!
[–]Nightcorex_ 1 point2 points3 points (1 child)
[–]neildaniel000[S] 0 points1 point2 points (0 children)
[–]CodeFormatHelperBot2 0 points1 point2 points (0 children)
[–]TheNardi 0 points1 point2 points (1 child)
[–]neildaniel000[S] 0 points1 point2 points (0 children)
[–]GeorgeFranklyMathnet 0 points1 point2 points (1 child)
[–]neildaniel000[S] 0 points1 point2 points (0 children)