[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #36867] randn gives same number when rand is i
From: |
B |
Subject: |
[Octave-bug-tracker] [bug #36867] randn gives same number when rand is initialised with a random seed |
Date: |
Wed, 18 Jul 2012 17:34:29 +0000 |
User-agent: |
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:14.0) Gecko/20100101 Firefox/14.0.1 |
URL:
<http://savannah.gnu.org/bugs/?36867>
Summary: randn gives same number when rand is initialised
with a random seed
Project: GNU Octave
Submitted by: brt
Submitted on: Wed 18 Jul 2012 05:34:29 PM GMT
Category: None
Severity: 3 - Normal
Priority: 5 - Normal
Item Group: None
Status: None
Assigned to: None
Originator Name: B
Originator Email:
Open/Closed: Open
Discussion Lock: Any
Release: 3.2.4
Operating System: Mac OS
_______________________________________________________
Details:
If I have a script with the following contents
rand('seed',ceil(rand*1000))
rand
randn
then it will output two random numbers. However, if I run this
script twice from the command line with 'octave --eval
script.m', very quickly after each other, then the second random
number of the first run is the same as to the second run. The
first random number does differ between the runs. If one waits a
bit longer, then the two second random numbers are different.
>From my point of view the expected behaviour would be that the
second random number should be different between different runs,
as is with the first random number.
That is the reason I though this could be considered a bug.
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?36867>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Octave-bug-tracker] [bug #36867] randn gives same number when rand is initialised with a random seed,
B <=