# Passing automated random test with entered variables

**URL:** <https://forum.choiceofgames.com/t/passing-automated-random-test-with-entered-variables/34964>\
**Category:** ChoiceScript Help\
**Created:** [February 3, 2018, 4:09am UTC](https://forum.choiceofgames.com/t/passing-automated-random-test-with-entered-variables/34964 "2018-02-03T04:09:16Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jacic](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/jacic/32/7061_2.png) [@Jacic](https://forum.choiceofgames.com/u/Jacic)\
**Post date:** [February 3, 2018, 4:09am UTC](https://forum.choiceofgames.com/t/passing-automated-random-test-with-entered-variables/34964/1 "2018-02-03T04:09:16Z")

</div>

Hi all,  
I’m pretty sure I saw this posted really recently but I can’t seem to find where on the search. Short question is that I’m finishing up a game that has a number of places where the player needs to enter the correct variable to continue with the game (riddle answers). When I random test, I have the answer under a \*comment to allow it to pass, but obviously I can’t submit a game that has the answers pre-entered.

Can I submit a game that doesn’t pass random test due to this (and just let the COG staff know the lines to take out the \*comment on if they need to test it themselves?) Or is there a non-complicated way of coding it to pass only under random test conditions so it doesn’t mess up the game in general play?

Thanks 🙂

---

<div class="post-metadata">

**Author:** ![Carlos.R](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/carlos.r/32/75837_2.png) [@Carlos.R](https://forum.choiceofgames.com/u/Carlos.R)\
**Post date:** [February 3, 2018, 7:26am UTC](https://forum.choiceofgames.com/t/passing-automated-random-test-with-entered-variables/34964/2 "2018-02-03T07:26:14Z")

</div>

```
*if choice_randomtest
 (do stuff)

```

---

<div class="post-metadata">

**Author:** ![Jacic](https://sea3.discourse-cdn.com/choiceofgames/user_avatar/forum.choiceofgames.com/jacic/32/7061_2.png) [@Jacic](https://forum.choiceofgames.com/u/Jacic)\
**Post date:** [February 3, 2018, 8:58am UTC](https://forum.choiceofgames.com/t/passing-automated-random-test-with-entered-variables/34964/3 "2018-02-03T08:58:23Z")

</div>

Huh, that easy? Thanks @Carlos.R, I’ll give it a go 🙂
