Contract con_random_test


Contract Code


  
1 v = Variable(contract='con_random_test', name='v')
2 random.seed()
3
4
5 @export('con_random_test')
6 def return_random():
7 return random.randint(1, 10000)
8
9
10 @export('con_random_test')
11 def set_to_random():
12 v.set(random.randint(1, 10000))
13

Byte Code

e30000000000000000000000000400000040000000733800000065006400640164028d025a0165026a038300010065046400830164036404840083015a0565046400830164056406840083015a06640753002908da0f636f6e5f72616e646f6d5f74657374da01762902da08636f6e7472616374da046e616d65630000000000000000000000000300000043000000730c00000074006a01640164028302530029034ee90100000069102700002902da0672616e646f6dda0772616e64696e74a90072080000007208000000da00da0d72657475726e5f72616e646f6d0500000073020000000002720a000000630000000000000000000000000400000043000000731600000074006a0174026a03640164028302830101006400530029034e720500000069102700002904da035f5f76da03736574720600000072070000007208000000720800000072080000007209000000da0d7365745f746f5f72616e646f6d0a00000073020000000002720d0000004e2907da085661726961626c65720b0000007206000000da0473656564da085f5f6578706f7274720a000000720d0000007208000000720800000072080000007209000000da083c6d6f64756c653e0100000073060000000c0108031005