In reply to Tim Bedsted.

Yes, your program will generate a '1' with probability 0.0245. I prefer to use RAND('BERNOULLI', 0.0245), but using the BINOMIAL distribution is okay.