I have an application that requires the user to be in control of the seed of a pseudo random number generator (PRNG). To this end, I duplicated the RAND() function in a UDF. It runs OK in single-step, but NOT when invoked from the spreadsheet. I cannot figure out why. Here's the UDF:
Function...