diff trunk/aid/misc.d @ 3:314d68bafeff

Backprop and backprop_test added (no testing).
author revcompgeek
date Fri, 11 Apr 2008 18:12:55 -0600
parents
children 810d58835f86
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/trunk/aid/misc.d	Fri Apr 11 18:12:55 2008 -0600
@@ -0,0 +1,13 @@
+module aid.misc;
+
+import std.random;
+
+class InputException : Exception {
+	this(char[] message){
+		super(message);
+	}
+}
+
+double rnd(){ // The function that should be included in every math library!
+	return (cast(double)rand())/uint.max;
+}
\ No newline at end of file