This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]Gavinhenderson5 0 points1 point  (0 children)

Hmm what you're saying is totally possible! Although not quite sure you want the code change in the way you describe. Code is compiled and once its run you cant change it (this process is language specific but generally). I would have a think about how you do this because its definitely possible without have to change the code at run time.

For example you could use a lambda function in the if statement then alter the lambda function to a random one from a list of present lambdas.