Joseph DeVore's Blog: Interesting tidbits


Viewing By Entry / Main
August 1, 2005
So I've been messing with a bunch of stuff in MX 7 trying to figure out complex Java objects that should be getting converted to CF structures but seem to be read-only accessible to StructCount() or StructKeyList(), etc. I can't seem to read them, output them, duplicate them, dump them or set them. It's really odd. Anyhow, while messing with GetPageContext(), I found this interesting set of methods that I had no idea existed. The object: GetPageContext().getRandomNumberGenerator() contains a bunch of methods for generating random numbers:


GetPageContext().getRandomNumberGenerator().nextDouble(): 0.653134088716

GetPageContext().getRandomNumberGenerator().nextInt(): -881534180

GetPageContext().getRandomNumberGenerator().nextBoolean(): YES

GetPageContext().getRandomNumberGenerator().nextFloat(): 0.11886954

GetPageContext().getRandomNumberGenerator().nextGaussian(): 0.216899290492

GetPageContext().getRandomNumberGenerator().nextLong(): -7387478764913535202

Very interesting indeed!

Comments

Comments are not allowed for this entry.













Editor Login ›