adamszabo wrote:I think the problem with the schematic is that it seems its not really random. For example when I set the range between 0 and 1 i get 0.1111, 0.2222, 0.3333 and so on. so it seems its dividing by the number you specify. It would be truly random if it writes: 0.1111 then, 0.111253. Its close to 0.111 but still a different value, if you understand what I mean.
I know what you mean, but that's not the intention of this module. In your example, you get 0.1111, 0.2222, etc., because of the
count of numbers you entered. Example:
min 1, max 2, count 2 will return either 1 or 2 in random order
min 1, max 2, count 3 will return 1, 1.5 and 2 in random order
min 1, max 2, count 4 will return 1, 1.3333, 1.6666, 2 in random order
min 1, max 2, count 5 will return 1, 1.25, 1.5, 1.75, 2 in random order
and so on
So don't ignore
count, it defines the count of numbers you want to get returned.
done triggers, when
count numbers are returned, so you can then generate a new sequence.
Again, imagine a card deck. It has a fixed number of cards, like 32 or 54 or w/e, those cards then are shuffled so that they appear in random order, with each card of the deck appearing exactly once.
count is like defining the size of the deck, min and max are defining the range of numbers that is evenly distributed over the cards, and
start is the equivilent of shuffling the cards.
request next in this analogy is the dealer giving you a card.
Back to your example: That's the intention of the module. Not the
numbers are random (you define them with min, max and count) but
the order in which they appear. That's what this module is about.