[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #39085] randg cannot be initialized
From: |
anonymous |
Subject: |
[Octave-bug-tracker] [bug #39085] randg cannot be initialized |
Date: |
Mon, 03 Jun 2013 14:00:29 +0000 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/27.0.1453.93 Safari/537.36 |
Follow-up Comment #1, bug #39085 (project octave):
Can't confirm this (octave 3.6.4 and matlab R2012b).
octave:1> foo
ans = 0.0018640
octave:2> foo
ans = 0.88730
octave:3> foo
ans = 0.53639
octave:4> foo
ans = 0.048427
octave:5> foo
ans = 0.073916
octave:6> foo
ans = 0.43173
octave:7> system('cat foo.m')
rand('state', 0.5) ;
randg(1)
ans = 0
octave:8> foo
ans = 1.0399
>> foo
ans =
0.9302
>> foo
ans =
0.1004
>> foo
ans =
2.1884
>> foo
ans =
2.1853
>> foo
ans =
0.6364
while:
octave:10> rand("state", 0.5); rand
ans = 0.84442
octave:11> rand("state", 0.5); rand
ans = 0.84442
octave:12> rand("state", 0.5); rand
ans = 0.84442
>> rand('state', 0.5); rand
ans =
0.9501
>> rand('state', 0.5); rand
ans =
0.9501
>> rand('state', 0.5); rand
ans =
0.9501
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?39085>
_______________________________________________
Nachricht gesendet von/durch Savannah
http://savannah.gnu.org/
- [Octave-bug-tracker] [bug #39085] randg cannot be initialized,
anonymous <=