Re: Positive random number



pete wrote:

The return value of rand isn't guaranteed to be positive.

What does "positive" mean? Is x positive if and only if x > 0?
Does that mean that 0 is neither positive nor negative?

For the record, the rand function computes a sequence of
pseudo-random integers in the range 0 to RAND_MAX.
.



Relevant Pages

  • Re: Heres one problem
    ... On Sep 28, 9:19 pm, "Pete Dashwood" ... exact sequence of what they did is usually not productive. ... credibility - and we KNOW you are both competent programmers. ... I haven't yet downloaded your COBOL program to take a look, ...
    (comp.lang.cobol)
  • Re: Heres one problem
    ... On Sep 28, 9:19 pm, "Pete Dashwood" ... exact sequence of what they did is usually not productive. ... I don't even like writing it, but some others must have had the same thought; rushing the publication of a project that didn't totally work, smoothly, given the environment options, it brings into question your credibility - and we KNOW you are both competent programmers. ... So given your format, what percentage of COBOL programmers do you think actually give a picture of data items, WITHOUT a final period/full Stop? ...
    (comp.lang.cobol)
  • Re: My name being used.
    ... Hash: SHA256 ... automatically hides it while interpreting the sequence. ... extracting key information like passwords. ... Pete, here's a tip mate, make sure you include your PGP key on all the ...
    (uk.legal)
  • Re: Random number help
    ... >> I need your guidelines about Random number ... >> RAND function in Matlab.As in my problem it is giving me same ... >> sequence of values in each iteration of the for loop. ... In other words, take it out of your FOR loop, if not out of your code ...
    (comp.soft-sys.matlab)
  • Re: Deleting Duplicates, All records unique
    ... back hours of my life! ... Pete Wrote: ... Click OK - this will fill a sequence down this column to enable ... > Re-sort the remaining data using column E for sort order. ...
    (microsoft.public.excel.misc)