ID:275650
 
Hello I have a couple questions for the people of byond I'm hoping you can help me out on them.

First off what is pseudo?
After you have explained that what is a pseudo-random?

After those two questions could some one explain what a gradient vector is?
I think I know what a vector is its the cord's to a mapping system of some kind like x,y,z.

Thanks in advance to any one who can answer my questions above.
Psuedo basically means "sort of" or maybe "semi-", or maybe "similar to"... Other than that, it is kind of hard to explain.

A gradient, in graphics anyways, is when the color is made lesser or more greatly, by (for a simply way) making a little bit of random dots of each of the conflicting colors into each other. Again, hard to explain, so imma draw a diagram:


BBBBBBBBBBBBB
BBBBBBBBBBBBB
BHBBBHBBBHBHB
BHBBHBHHBHBBH
HHBHHHBHHBHBH
HHHHBHHHHBHHH
HHHHHHHHHHHHH
In response to Kunark
I thought pseudo meant false
In response to Artekia
There you go, there is the description...
Though "Fake" I would say works best with it, since "False" would probably confuse some people... Then again, so would "Fake".


An example would be psuedo-3D. psuedo-3D would be something 2D made to look 3D.
In response to Kunark
Kunark wrote:
There you go, there is the description...
Though "Fake" I would say works best with it, since "False" would probably confuse some people... Then again, so would "Fake".


An example would be psuedo-3D. psuedo-3D would be something 2D made to look 3D.

So a psuedo-random would be just made to look random but really isn't?
In response to Green Lime
Green Lime wrote:
So a psuedo-random would be just made to look random but really isn't?

Correct.

All random numbers generated by computers, for instance, are pseudorandom. (Of course, on a microscopic level there's no such thing as true randomness anyway.) Better-quality generators, like the ones used by cryptosystems, actually try to pull in as much chaotic data as they can to add to their algorithm: hard drive seek times, mouse movements, time between keypresses, etc.

Lummox JR
Try this link and the references:
http://thesaurus.maths.org/mmkb/ entry.html?action=entryById&id=2101

Treat the X and Y stuff as just an example. It doesn't matter how many variables there are.

(I majored in computer science and physics for most of my collage career, but now all I could think of was "that derivative thingy with the upside down triangle".)
In response to Lummox JR
Lummox JR wrote:
Green Lime wrote:
So a psuedo-random would be just made to look random but really isn't?

Correct.

All random numbers generated by computers, for instance, are pseudorandom. (Of course, on a microscopic level there's no such thing as true randomness anyway.) Better-quality generators, like the ones used by cryptosystems, actually try to pull in as much chaotic data as they can to add to their algorithm: hard drive seek times, mouse movements, time between keypresses, etc.

Lummox JR

Any one know how to turn the rand() and rand_seed() into so the rand() will support a range of -1 to 1 instead of 0 to 1?
In response to Green Lime
Might be wrong but rand(-1,1) works...
In response to DeathAwaitsU
DeathAwaitsU wrote:
Might be wrong but rand(-1,1) works...

I wanted float point numbers like -0.2451 or somthing like that. I also wanted it to be based on a SEED. Maybe rand_seed(1)
var/a = rand()
rand_seed(2)
var/b = rand()
var/TrueRand = a - b
So if b is greater than a it will be - but if a is greater than b its positive.

Any one think of an easier way?
In response to Green Lime
I seem to remember that just calling rand() without any arguments will get you a more traditional computer-generated random number; that is, 0<=number<1, where "number" has lots of decimal places. One of Lummox's recent-ish updates, if I remember rightly.

Try this:

rand_seed(284)
var/number = rand()*3-1


The seed number can be anything, it really doesn't matter.

The only problem with this is that you'll never get a perfect 1, but the chances of getting any specific number are pretty remote anyway!
In response to Crispy
Crispy wrote:
I seem to remember that just calling rand() without any arguments will get you a more traditional computer-generated random number; that is, 0<=number<1, where "number" has lots of decimal places. One of Lummox's recent-ish updates, if I remember rightly.

Try this:

rand_seed(284)
> var/number = rand()*3-1

The seed number can be anything, it really doesn't matter.

The only problem with this is that you'll never get a perfect 1, but the chances of getting any specific number are pretty remote anyway!

That can give me over the 1 limit I wanted somthing within -1<number<1.
In response to Kunark
Kunark wrote:
BBBBBBBBBBBBB
BBBBBBBBBBBBB
BHBBBHBBBHBHB
BHBBHBHHBHBBH
HHBHHHBHHBHBH
HHHHBHHHHBHHH
HHHHHHHHHHHHH

That is more dithering than gradient. It is however still gradient, but now days we can do better than that. Gradient is a change from one color to another over an amount of space. For example, if you are running windows XP, all the bars look smooth and rounded, that is a Gradient at work. Or, if you are on windows98, the tittle bar of most windows will be gradient from two colors.
In response to Green Lime
Then adjust the maths until you get what you want. It's not hard! It's really very very very easy!

I'd tell you the one small change you need to make to that, but I'd prefer you try solving it yourself.
In response to Crispy
Crispy wrote:
Then adjust the maths until you get what you want. It's not hard! It's really very very very easy!

I'd tell you the one small change you need to make to that, but I'd prefer you try solving it yourself.

is it rand()*2-1? It seemed to work no matter how small or great I put the rand().
In response to Green Lime
is it rand()*2-1?

Yup, because rand() has minimum and maximum values of 0 and 1 respectively. So if you multiply that by 2, you'll get a number from 0 to 2. If you then subtract 1, you'll get a number from -1 to 1.

In other words, you're right. Congratulations! Have a cookie. :-)
In response to Crispy
and here i was thinking this topic was about relationships bewteen couples!

:(