{"functions":[{"rawId":"id_2f55d5a0_6357_4f90_bb0c_fdcb7aba95f9","tpe":"Void","name":"fun1","statements":[{"@type":"Begin","id":"id_f5274206_92f8_4eac_939a_12a27ad6f47c"},{"condition":"false","@type":"DoWhile","id":"id_038431e8_17fd_465f_a149_30a878b2cd96","body":{"statements":[{"falseBlock":{"statements":[],"id":"id_1b3e3a7f_8119_42ca_89ce_9aab5098de57"},"trueBlock":{"statements":[],"id":"id_b8963887_9689_4b77_b02a_145cb37ab2cf"},"condition":"true","@type":"If","id":"id_674bcda1_fecd_481b_8fd1_025fe276f876"}],"id":"id_a2306179_55c5_43a4_b9c6_ba4805541ec1"}},{"@type":"Return","id":"id_f1ccbdbf_0ac5_45d2_beb4_e917226d7a04","maybeValue":null}],"parameters":[]}],"name":"d20-6-8 dice","main":{"rawId":"main","tpe":"Void","name":"main","statements":[{"@type":"Begin","id":"id_12e53196_5759_4c73_be5b_f8fb1ebb12e5"},{"@type":"Declare","tpe":"Integer","name":"x","id":"id_1cb5b0d3_5936_48b1_8c68_0f34d26b7bf9","initValue":null},{"@type":"Declare","tpe":"Integer","name":"d6","id":"id_79d2215f_8e76_4ae9_b76e_677183fee914","initValue":"randomInt(6)"},{"@type":"Declare","tpe":"Integer","name":"d8","id":"id_c8f65bc0_47e3_4fe7_ad43_c8e9c2de84c4","initValue":"randomInt(8)"},{"@type":"Declare","tpe":"Integer","name":"d20","id":"id_1a191207_f516_44bb_926e_cc7a4b112656","initValue":"randomInt(20)"},{"@type":"Input","name":"x","id":"id_c2b681fc_a72a_4c84_b91e_59ea9f22e579","prompt":"1 if you wnt d20 , 2 for d8 , 3 for d6"},{"@type":"Declare","tpe":"Integer","name":"m","id":"id_33897214_e8cf_49a0_8af3_9f1db6b586db","initValue":"0"},{"@type":"Call","id":"id_06520a24_e568_4822_aa94_72e312e4eef6","value":"fun1()"},{"falseBlock":{"statements":[{"@type":"Assign","name":"m","id":"id_62585122_b083_4edb_b0ec_80b09e96cacf","value":"m+1"}],"id":"id_dbe3b6bf_bd71_4b86_b8a3_f05fcf5de644"},"trueBlock":{"statements":[{"newline":true,"@type":"Output","id":"id_31c220df_bddf_41c5_9872_ca4005dae78a","value":"\"dice 20 is \" + d20"}],"id":"id_b6e869db_f1fe_4f12_abde_5a817f010694"},"condition":"x==1","@type":"If","id":"id_1d58e5f8_9e3a_4b99_a82a_27371d7b2cb7"},{"falseBlock":{"statements":[{"@type":"Assign","name":"m","id":"id_494a15b4_de66_47f5_83b9_cb4dc13a0101","value":"m+1"}],"id":"id_5813c3b6_9aa2_4fea_9373_eaf765ef9874"},"trueBlock":{"statements":[{"newline":true,"@type":"Output","id":"id_4f2a3def_bb10_4730_a0fc_247f5b2fa865","value":"\"dice 8 is \" + d8"}],"id":"id_9ced831e_e9a9_4869_9078_7f6a4b0caf0e"},"condition":"x==2","@type":"If","id":"id_a7e496fb_8c7a_441d_ab68_e29b645aa4a1"},{"falseBlock":{"statements":[{"@type":"Assign","name":"m","id":"id_3656a5c7_335d_41d1_acd0_dded00c97cdd","value":"m+1"}],"id":"id_f7e91d0b_db7f_4776_b5af_bb8dccb73be0"},"trueBlock":{"statements":[{"newline":true,"@type":"Output","id":"id_bbbd2b3a_a598_4b92_9e88_0ded7744f1d6","value":"\"dice 6 is \" + d6"}],"id":"id_8d3a8b39_1f1c_4797_ba19_62be9f5da00f"},"condition":"x==3","@type":"If","id":"id_fb7d157c_7357_4955_aed9_1047d1b8c0dc"},{"falseBlock":{"statements":[],"id":"id_1c62a805_a9d9_4ad3_b6cb_166affb6b5cf"},"trueBlock":{"statements":[{"newline":true,"@type":"Output","id":"id_e55d728a_5d02_49bc_ba66_695163184b24","value":"\"you didnt chosee anything\""},{"newline":true,"@type":"Output","id":"id_190a02f1_26b4_4555_ab7f_08af27d76452","value":"z"}],"id":"id_50bf3dd2_008d_48d1_8927_0fe8356996da"},"condition":"m==3","@type":"If","id":"id_5916c59c_6e7f_472d_ac34_3a02b602bcf6"},{"@type":"Return","id":"id_706fb72b_191f_4a61_a57d_6ad715a56f1f","maybeValue":null}],"parameters":[]},"id":"id_46a6ba97_8d47_4d7c_a159_f2715004b8f9","config":{"showDebugVars":true,"showIoBtns":true,"showFunctions":true,"lang":"java","showGenCode":true},"version":"0.2","revision":215}