Messages from list : cormas@cirad.fr

Choose a topic among the following archives :

Random numbers ...

New Message Reply Date view Thread view Subject view Author view

Subject: Random numbers ...
From: Jourdain, Damien (D.JOURDAIN@CGIAR.ORG)
Date: sam nov 24 2001 - 00:09:42 CET

Dear all,

I try to generate a serie of random numbers uniformely distributed between
let say 0.7 and 0.1. I thought the routine to use would look something like

| x y |
x := OrderedCollection new.
1 to: 100 do: [ :p |
                y := Cormas randomFrom: 0.7 to: 1.
                x add: y.
              ].

This, in fact generate a serie of numbers that are either 0.7 or 1 but
nothing in between.
What did I do wrong?

Damien

Damien Jourdain
CIMMYT - CIRAD
Economics Program
Apdo Postal 6-641
06600 Mexico D.F.

e-mail: d.jourdain@cgiar.org
tel: +52 (55) 58 04 20 04

New Message Reply Date view Thread view Subject view Author view
 

Back to home