May 26, 200916 yr How do you generate even/odd random numbers? ex) Generate "even" random number from (2-10) resulting in random value from (2,4,6,8,or 10) Has anyone done this before? Thanks Edited May 26, 200916 yr by Guest
May 26, 200916 yr Try: 2 * Int ( Random * 5 ) + 2 But see also: http://fmforums.com/forum/showpost.php?post/299804/
May 26, 200916 yr Author Thank You very much for the link. however what about if min=3 max=13 result=odd number 2 * Int ( Random * 5 ) + 2 how to plot to that equation? My goal is to create universal formula to generate even/odd number within range. ex) min, max resulted in "Even"/"Odd" number within specified range. Please help Edited May 26, 200916 yr by Guest
Create an account or sign in to comment