Re: best approach to generate random number in java

From: Alex Hunsley (lard_at_tardis.ed.ac.molar.uk)
Date: 10/14/04


Date: Thu, 14 Oct 2004 13:35:56 +0100

Paul Lutus wrote:
> Vincent Lascaux wrote:
>
>
>>>>...I suppose things are this way because truly random sequences require
>>>>something non-alorithmic such as RNG hardware which usually
>>>>isn't there in most cases...
>>>
>>>Actually, I think I am wrong there!
>>>I can easily write an alogrithm that produces very random digits: the
>>>digits of pi, or e, etc...
>>
>>I think you were right. Numbers of pi or e are *not* random... well, it
>>(of course) depends on the meaning of random. According to the first
>>dictionary I found googling (hyperdictionary), random is a synonyme for
>>"unpredictable". This looks good enough to me.
>>The numbers of pi are definitly predictable. Unpredictable implies that it
>>does not follow any algorithm.
>
>
> Yes, that adequately muddies the water. :) But "random" doesn't necessarily
> mean "unpredictable." It may instead mean evenly distributed, with no
> pattern.

I think this is what I was saying in my very recent post just now, but
using different words :)

I have a theorem: (if it can be called that)

  Truly unpredictable sequences of numbers can be produced
  by algorithmic means, but the runtime needed to produce
  successive numbers ramps up (possibly exponentially).

I think I might ask about this in comp.theory.

alex



Relevant Pages

  • Re: Choice sequences, intuition, etc
    ... before setting out on the actual math. ... meaning could be given to it, ... but I think modern constructivists like Bridges do. ... of an algorithm for turning an algorithm for p into ...
    (sci.logic)
  • Re: Does Searles "Chinese Room" argument imply that consciousness is non-scientific?
    ... symbols certainly do accrue meaning, ... ascription of syntax or symbolic operations of a brain is a ... computational algorithm it is running but also the ... an algorithm might be implemented have the "causal power" to produce ...
    (comp.ai.philosophy)
  • Re: Division by rotation on 8 bit machine
    ... but I don't have a routine for the 8051 family ... Meaning, I assume: ... >I want algorithm for division by rotation which gets executed faster. ...
    (comp.arch.embedded)
  • Re: Accelerometer
    ... that it took a lot of work to develop an algorithm that gave results ... we recently had an interesting discussion on the significance of erg data. ... Data derives from measurements & computation & either has absolute meaning & significance or it has very little. ...
    (rec.sport.rowing)
  • Re: CSV Parsing algorithms in Java
    ... in Java? ... I've been googling about but can't see anything suitable so ... I'm not interested in using library functions, ... the algorithm myself. ...
    (comp.lang.java.programmer)