Help on my code!

combining random snippets

Stochastic programming methodologies have been largely discredited.
Except on Instructables.