March 16, 201114 yr Hello People! It´s good to be back to the forum I was looking around to see how can I random numbers from 1 to 20 in some fields and follow the classic random * ((maxnumber - minnumber)+1) and for sure I got the result the only problems is that I got a 0 (zero) and only need from 1 to 20 and for my surprise the formula is not giving me a 20 neither!!!!!!! How can I resolve this problem, maybe It must be very basic maths but.... any help would be very helpful Byeeee Sincerely BluiSh
March 16, 201114 yr Author Yes Indeed I need a integer number between 1 to 20. Thanks Your help would be very helpful Sincerely BluiSh
March 16, 201114 yr Try + Int ( Random * 20 ) + 1 Note that the exact behavior of the Random function in some versions is not entirely clear. FileMaker,Inc. have posted various conflicting descriptions of the function regarding the possibility of Random returning either 0 or 1. This was fixed in the 10.0v3 update. In previous versions, there may be a VERY small probability of the calculation above returning 21.
March 16, 201114 yr Author Thank you very much... Consultant I´m testing it right now!!!!!!! THanks Sincerely BluiSh
Create an account or sign in to comment