CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > General Forums > Main CFD Forum

Is there a 'best' uniform random number generator?

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 28, 2006, 11:37
Default Is there a 'best' uniform random number generator?
  #1
LEAF
Guest
 
Posts: n/a
Hi, Everybody:

Is there a 'best' uniform random number generator? or less better? I need some fortran code to generate randam number at some mesh point. Independency and ramdomness of these number are required.

Thank you! Best Wishes!

  Reply With Quote

Old   March 29, 2006, 03:52
Default Re: Is there a 'best' uniform random number genera
  #2
Ford Prefect
Guest
 
Posts: n/a
Ah, random numbers...

If we define random to exist if we can perform two identical experiments that will yield different results then how about the following:

Up to this day we can not make two experimental setups that are identical. Just consider how to measure if two setups are identical, on a quantum level we will probably change the results just by looking, right? (like the electron scattering experiments) I is also really difficult to perform two experiments at the same spacial coordinates unless they are performed at different times, yielding another problem... time conformity. Ok so maybe it is not possible to "prove" that random exists. Well if it doesn't there might (should) be an equation governing everything. So all of you that thought you had an own free will, think again =)

On topic: Random number generators based on time, and say, mouse position should be fairly random (you could add almost anything to this, decreasing the risk of ever drawing the same seed number twice in your lifetime, translating this into a number is of course another question). One more thing you could do is use an existing database containing a few years of lottery numbers and use them as seed, picking a new draw each time.

/F.P.
  Reply With Quote

Old   April 20, 2006, 08:23
Default Re: Is there a 'best' uniform random number genera
  #3
buch
Guest
 
Posts: n/a
Hi

Check this out : http://www.library.cornell.edu/nr/cbookfpdf.html

Regards
  Reply With Quote

Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Upgraded from Karmic Koala 9.10 to Lucid Lynx10.04.3 bookie56 OpenFOAM Installation 8 August 13, 2011 04:03
rhoSimpleFoam claco OpenFOAM 7 April 20, 2010 04:32
air bubble is disappear increasing time using vof xujjun CFX 9 June 9, 2009 07:59
random number rr FLUENT 0 May 21, 2008 08:04
RasInterFoam STRANGE RESULTS AT BOUNDARY kumar2 OpenFOAM Running, Solving & CFD 8 March 24, 2008 18:38


All times are GMT -4. The time now is 12:41.