Text archives Help
- From: "James Bigler" <bigler@cs.utah.edu>
- To: manta@sci.utah.edu
- Subject: [Manta] r2094 - trunk/Interface
- Date: Tue, 19 Feb 2008 21:29:11 -0700 (MST)
Author: bigler
Date: Tue Feb 19 21:29:10 2008
New Revision: 2094
Modified:
trunk/Interface/RandomNumberGenerator.h
Log:
Interface/RandomNumberGenerator.h
Added a nextReal version if you don't want to go through the template
interface.
Modified: trunk/Interface/RandomNumberGenerator.h
==============================================================================
--- trunk/Interface/RandomNumberGenerator.h (original)
+++ trunk/Interface/RandomNumberGenerator.h Tue Feb 19 21:29:10 2008
@@ -116,6 +116,9 @@
inline float nextFloat() {
return ( (float)nextInt() * (float)((1./4294967296.)) );
}
+ inline Real nextReal() {
+ return ( (Real)nextInt() * (Real)((1./4294967296.)) );
+ }
};
// Don't put the implementations here, because you will get multiply
- [Manta] r2094 - trunk/Interface, James Bigler, 02/19/2008
Archive powered by MHonArc 2.6.16.