This commit is contained in:
skylarmt 2014-12-11 03:56:26 -07:00
parent 238505bbca
commit ae50d252bb
2 changed files with 19 additions and 2 deletions

View File

@ -78,8 +78,9 @@ public class CodeRunner {
} }
/** /**
* Allows use of Math.blah() as just blah(). * Allows use of Math.blah() as just blah(). Also gives access to SyMAT Java
* Also gives access to SyMAT Java functions. * functions.
*
* @param eval input string * @param eval input string
* @return wrapped input * @return wrapped input
*/ */
@ -112,4 +113,13 @@ public class CodeRunner {
} }
return text; return text;
} }
// TODO: Run Javascript in separate thread from rest of app.
private class JsThread extends Thread {
@Override
public void run() {
}
}
} }

View File

@ -48,4 +48,11 @@ public class PrefStorage {
public static String getSetting(String key, String emptyResponse) { public static String getSetting(String key, String emptyResponse) {
return prefs.get(key, emptyResponse); return prefs.get(key, emptyResponse);
} }
// xkcd 221 compliance.
int getRandomNumber()
{
return 4; // chosen by fair dice roll.
// guaranteed to be random.
}
} }