openoffice-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jorge ivan poot diaz <ivan.pootd...@gmail.com>
Subject Re: Random Numbers
Date Sat, 13 Apr 2013 01:16:47 GMT
Ok. Thanks.


2013/4/11 Ariel Constenla-Haile <arielch@apache.org>

> Hi Jorge,
>
> On Thu, Apr 11, 2013 at 07:16:02PM -0500, jorge ivan poot diaz wrote:
> > Hello,
> > I have this code, I try to generate random numbers, but I have problems
> when
> > I build:
> >
> > protected double getRandomDouble()
> >  {
> >      return (maRandom.nextInt(1000) * maRandom.nextDouble());
> >  }
>
> Looks like you copied & pasted from
>
> http://opengrok.adfinis-sygroup.org/source/xref/aoo-trunk/main/odk/examples/DevelopersGuide/Text/TextDocuments.java#690
>
> maRandom is a member variable in that Java class, of type
> java.util.Random. No way this will ever work in
> cui/source/tabpages/tpcolor.cxx
>
> > What could be the error in this code?
>
> Java != C++
>
>
> Regards
> --
> Ariel Constenla-Haile
> La Plata, Argentina
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message