.:: Bots United ::.  
filebase forums discord server github wiki web
cubebot epodbot fritzbot gravebot grogbot hpbbot ivpbot jkbotti joebot
meanmod podbotmm racc rcbot realbot sandbot shrikebot soulfathermaps yapb

Go Back   .:: Bots United ::. > Developer's Farm > General Bot Coding
General Bot Coding See what a pain it is to get those little mechs shooting around

Reply
 
Thread Tools
Re: Portable, self-contained replacements for RANDOM_STUFF()
Old
  (#11)
botmeister
Ex-Council Member
 
botmeister's Avatar
 
Status: Offline
Posts: 1,090
Join Date: Nov 2003
Location: Canada
Default Re: Portable, self-contained replacements for RANDOM_STUFF() - 08-01-2004

Adobe is NOT standard post script, it's a proprietory format which sucks. To view standard post script documents, get these apps from here
http://www.cs.wisc.edu/~ghost/index.htm

I just tested the tiny random algo and it seems to work very well. It's supposed to generate a uniform distribution and is at least as good as rand().


Maker of the (mEAn) Bot.Admin Manager

"In theory, there is no difference between theory and practice. But, in practice, there is." - Jan L.A. van de Snepscheut
  
Reply With Quote
Re: Portable, self-contained replacements for RANDOM_STUFF()
Old
  (#12)
dav
Guest
 
Status:
Posts: n/a
Default Re: Portable, self-contained replacements for RANDOM_STUFF() - 08-01-2004

well, i think Pagemaker has a PostScript import option, and you might look for other programs that can read PostScript as well.
  
Reply With Quote
Re: Portable, self-contained replacements for RANDOM_STUFF()
Old
  (#13)
Pierre-Marie Baty
Roi de France
 
Pierre-Marie Baty's Avatar
 
Status: Offline
Posts: 5,049
Join Date: Nov 2003
Location: 46°43'60N 0°43'0W 0.187A
Default Re: Portable, self-contained replacements for RANDOM_STUFF() - 08-01-2004

k, I'm getting GhostView and GS 8.11 right now. WTF, they weight LESS than the zipped Acrobat Reader and they do so much more !!!



RACC home - Bots-United: beer, babies & bots (especially the latter)
"Learn to think by yourself, else others will do it for you."
  
Reply With Quote
Re: Portable, self-contained replacements for RANDOM_STUFF()
Old
  (#14)
dav
Guest
 
Status:
Posts: n/a
Default Re: Portable, self-contained replacements for RANDOM_STUFF() - 08-01-2004

lol - corporate software design for you there
  
Reply With Quote
Re: Portable, self-contained replacements for RANDOM_STUFF()
Old
  (#15)
botmeister
Ex-Council Member
 
botmeister's Avatar
 
Status: Offline
Posts: 1,090
Join Date: Nov 2003
Location: Canada
Default Re: Portable, self-contained replacements for RANDOM_STUFF() - 08-01-2004

btw, I liked this book so much I downloaded the whole thing

http://www.ma.utexas.edu/documentation/nr/bookc/

It is not just about random number generation and has a lot of really usefull programming info.


Maker of the (mEAn) Bot.Admin Manager

"In theory, there is no difference between theory and practice. But, in practice, there is." - Jan L.A. van de Snepscheut
  
Reply With Quote
Re: Portable, self-contained replacements for RANDOM_STUFF()
Old
  (#16)
Pierre-Marie Baty
Roi de France
 
Pierre-Marie Baty's Avatar
 
Status: Offline
Posts: 5,049
Join Date: Nov 2003
Location: 46°43'60N 0°43'0W 0.187A
Default Re: Portable, self-contained replacements for RANDOM_STUFF() - 08-01-2004

yes, I was scared off just when I saw that word: "Knuth"



RACC home - Bots-United: beer, babies & bots (especially the latter)
"Learn to think by yourself, else others will do it for you."
  
Reply With Quote
Re: Portable, self-contained replacements for RANDOM_STUFF()
Old
  (#17)
Austin
Moderator
 
Austin's Avatar
 
Status: Offline
Posts: 403
Join Date: Nov 2003
Default Re: Portable, self-contained replacements for RANDOM_STUFF() - 08-01-2004

Quote:
Originally Posted by botmeister
btw, I liked this book so much I downloaded the whole thing

http://www.ma.utexas.edu/documentation/nr/bookc/

It is not just about random number generation and has a lot of really usefull programming info.
utexas.edu ??

Of course!
The best comes from Austin!
  
Reply With Quote
Re: Portable, self-contained replacements for RANDOM_STUFF()
Old
  (#18)
Bert
Member
 
Status: Offline
Posts: 11
Join Date: Jan 2004
Default Re: Portable, self-contained replacements for RANDOM_STUFF() - 08-01-2004

This may sound stupid, but should I set the seed more than once to ensure a more random result, or is setting it once enough (as in the numbers are random enough)?
  
Reply With Quote
Re: Portable, self-contained replacements for RANDOM_STUFF()
Old
  (#19)
Killaruna
Moderator
 
Status: Offline
Posts: 32
Join Date: Jan 2004
Location: Heidelberg, Germany
Default Re: Portable, self-contained replacements for RANDOM_STUFF() - 08-01-2004

You set the seed once before using the rand() function for the first time. Note that the same seed always produces the same line of "random" numbers.
  
Reply With Quote
Re: Portable, self-contained replacements for RANDOM_STUFF()
Old
  (#20)
Bert
Member
 
Status: Offline
Posts: 11
Join Date: Jan 2004
Default Re: Portable, self-contained replacements for RANDOM_STUFF() - 08-01-2004

Alright thanks, I've been doing it the right way then
  
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 

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

Forum Jump



Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
vBulletin Skin developed by: vBStyles.com