Hand of Fate 2
Does fate favor you, Game Master?
Create and submit all-new encounters, challenges, equipment, traits, and more and shape your own adventures in the Game of Life and Death.
เรียนรู้เพิ่มเติม
Store random int between 1 and 2 in randomvar
The store random int action has produced about eighteen 1s in a row (Two runs through the dev dungeon flipping every card, didn't trigger the 50:50 a couple of times). Thinking about it where I've got random ints that run 0-4 and 1-6 I'm not sure I recall ever seeing a 4 or a 6.

Being random numbers this could just be a really wild coincidence, but I'm starting to suspect that the Max value can't be obtained. Anyone else have experience of this?
แก้ไขล่าสุดโดย x_equals_speed; 26 ก.พ. 2018 @ 5: 46pm
< >
กำลังแสดง 1-2 จาก 2 ความเห็น
shiva  [ผู้พัฒนา] 2 26 ก.พ. 2018 @ 6: 17pm 
You are correct. It is is min inclusive, max exclusive. This is a programmery thing more than anything, eg. if i've a list of cards, it is easier to find a random card by using RandomInt(0, cardCount).
Apologies if it isn't obvious, I'll update the task description.
No worries, I suspected that might be the case, but I thought I'd better make sure before changing it because rolling constant ones means the encounter has less variety but rolling the occasional three would break it completely.
< >
กำลังแสดง 1-2 จาก 2 ความเห็น
ต่อหน้า: 1530 50