# random.cpp File Reference

blehh More...

`#include "random.h"`
`#include <cmath>`
`#include <cstdlib>`

## Defines

#define | PI (3.1415927)
#define | f(j, i, k) ((*this)(subseed,i,j,k))
#define | P(x) (((x)>0)?((x)*(x)*(x)):0.0f)
#define | R(x) ( P(x+2) - 4.0f*P(x+1) + 6.0f*P(x) - 4.0f*P(x-1) )*(1.0f/6.0f)
#define | F(i, j) ((*this)(subseed,i+x,j+y)*(R((i)-a)*R(b-(j))))
#define | FT(i, j, k) ((*this)(subseed,i+x,j+y,k+t)*(R((i)-a)*R(b-(j))*R((k)-c)))
#define | Z(i, j) ret+=F(i,j)
#define | ZT(i, j, k) ret+=FT(i,j,k)
#define | X(i, j)
#define | XT(i, j, k)

## Detailed Description

blehh

$Id$

## Define Documentation

#define PI (3.1415927)

#define f | ( | j,
|  | i,
|  | k |  | ) | ((*this)(subseed,i,j,k))

#define P | ( | x |  | ) | (((x)>0)?((x)*(x)*(x)):0.0f)

#define R | ( | x |  | ) | ( P(x+2) - 4.0f*P(x+1) + 6.0f*P(x) - 4.0f*P(x-1) )*(1.0f/6.0f)

#define F | ( | i,
|  | j |  | ) | ((*this)(subseed,i+x,j+y)*(R((i)-a)*R(b-(j))))

#define FT | ( | i,
|  | j,
|  | k |  | ) | ((*this)(subseed,i+x,j+y,k+t)*(R((i)-a)*R(b-(j))*R((k)-c)))

#define Z | ( | i,
|  | j |  | ) | ret+=F(i,j)

#define ZT | ( | i,
|  | j,
|  | k |  | ) | ret+=FT(i,j,k)

#define X | ( | i,
|  | j |  | ) |

#define XT | ( | i,
|  | j,
|  | k |  | ) |