You may want to try int(random(1,2)) which results will be either 1 or 2.
Without the int(), your result is probably a float.
If this is still not what you want/doesn't work as intended, can you post a capx showing the problem ?
Also in the first line you write ("Random(1,2)"), did you write it like that in C2 too ?
The ("") might indicate a string, which is not the correct variable type apparently and is not necessary.