Unix Technical Forum

Random Generator

This is a discussion on Random Generator within the Informix forums, part of the Database Server Software category; --> Is there a way to generate a random number through an Informix SPL? If not is there any other ...


Go Back   Unix Technical Forum > Database Server Software > Informix

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-20-2008, 12:59 PM
alkyr
 
Posts: n/a
Default Random Generator

Is there a way to generate a random number through an Informix SPL? If
not is there any other way to generate a random number within a
specified range?


Thanks
Alex

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 04-20-2008, 12:59 PM
Jean Sagi
 
Posts: n/a
Default Re: Random Generator

AFAIK IDS does not have a random number generator so you have to do it
yourself, in SPL, C, Java...

J.

alkyr escribió:
> Is there a way to generate a random number through an Informix SPL? If
> not is there any other way to generate a random number within a
> specified range?
>
>
> Thanks
> Alex
>
> _______________________________________________
> Informix-list mailing list
> Informix-list@iiug.org
> http://www.iiug.org/mailman/listinfo/informix-list
>


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 04-20-2008, 12:59 PM
Doug Lawry
 
Posts: n/a
Default Re: Random Generator

Searching for "random number generator" at

http://groups.google.com/group/comp.databases.informix

points to Jonathan Leffler's implementation:

http://www.iiug.org/software/archive/random_spl

Regards,
Doug Lawry
www.douglawry.webhop.org


"alkyr" <alexis.kyriakides@gmail.com> wrote in message
news:1157611613.766307.133640@m73g2000cwd.googlegr oups.com...
> Is there a way to generate a random number through an Informix SPL? If
> not is there any other way to generate a random number within a
> specified range?
> Thanks
> Alex



Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 04-20-2008, 12:59 PM
Jonathan Leffler
 
Posts: n/a
Default Re: Random Generator

On 9/7/06, Doug Lawry <lawry@nildram.co.uk> wrote:
> "alkyr" <alexis.kyriakides@gmail.com> wrote:
> > Is there a way to generate a random number through an Informix SPL? If
> > not is there any other way to generate a random number within a
> > specified range?

> Searching for "random number generator" at
>
> http://groups.google.com/group/comp.databases.informix
>
> points to Jonathan Leffler's implementation:
>
> http://www.iiug.org/software/archive/random_spl


The only thing to note is that it uses the pseudo-random number
generator suggested in the (1989) C standard as an illustration. It
is not a particularly good random number generator; it certainly is
not any use for cryptography, for example. If you need to know more,
look at Knuth (Vol 2, Semi-Numerical Methods, IIRC). Or search PRNG
(pseudo-random number generator) at Google groups.





--
Jonathan Leffler #include <disclaimer.h>
Email: jleffler@earthlink.net, jleffler@us.ibm.com
Guardian of DBD::Informix v2005.02 -- http://dbi.perl.org/
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 04-20-2008, 12:59 PM
scottishpoet
 
Posts: n/a
Default Re: Random Generator



>
> http://www.iiug.org/software/archive/random_spl
>

wow,

billy@west

thats a blast from the past

wonder what he is doing now!

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 10:09 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com