Bug 475995 - randint give a wrong anware compared ro random_integers in numpy.
Summary: randint give a wrong anware compared ro random_integers in numpy.
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Fedora
Classification: Fedora
Component: numpy
Version: 10
Hardware: All
OS: Linux
low
medium
Target Milestone: ---
Assignee: Gwyn Ciesla
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2008-12-11 14:10 UTC by Knut J BJuland
Modified: 2008-12-11 14:51 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2008-12-11 14:51:25 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
A python file which show a bug in numpy.random.randint. (388 bytes, text/x-python)
2008-12-11 14:10 UTC, Knut J BJuland
no flags Details

Description Knut J BJuland 2008-12-11 14:10:46 UTC
Created attachment 326619 [details]
A python file which show a bug in numpy.random.randint.

Description of problem:
When I use numpy.random.randint to simulat a game with dice it give the wrong ansaw compared to numpy.random.random_integers. I get a differetnt ansawer with randint. 

Version-Release number of selected component (if applicable):
1.2.0-1.fc10

How reproducible:
Everytime

Steps to Reproduce:
1. run the attament to se.
2.  
3.
  
Actual results:
randint and random_integer should give the same ansawer.

Expected results:


Additional info:

Comment 1 Knut J BJuland 2008-12-11 14:50:57 UTC
It was not a bug. Since randint and random_intefers use different upper limits.


Note You need to log in before you can comment on or make changes to this bug.