random – Talk

From Bohemia Interactive Community
Revision as of 21:02, 1 January 2007 by Planck (talk | contribs)
Jump to navigation Jump to search

This page should state whether the set of random numbers has open or closed bounds.

For example, does random 1 yield:

  • (0,1)
  • [0,1)
  • (0,1]
  • [0,1]

where ( , ) denote open {up to but not including boundary values} bounds and [ , ] denote closed {including boundary values} bounds. --Mr.Peanut 20:56, 28 September 2006 (CEST)


I have clarified. I would write that interval as <0,1), but for ease of read I prefered to use descriptive words instead. --Suma 18:10, 28 September 2006 (CEST)

Great --Mr.Peanut 20:56, 28 September 2006 (CEST)

Unfortunately using round is no good in OFP, it was only introduced in Arma. For OFP mod will need to be used.

Planck 20:02, 1 January 2007 (CET)