Is it possible to write questions of MapleTA just from maple 11?
I mean, I know is possible to write questions and export them to Maple T.A. but every "execution group" will be a diferent query for the maple and setences like
RandomTools[Generate](integer(range=0..4));
will return always the same number, an i cannot use sentence like parse(time) because parse is restricted.
Thanks.
rint?
While this doesn't answer the question about exporting from Maple 11, but in MapleTA there is a command called rint() that may generate the random integer that you are looking for. One advantage that this will have over the Maple call is that it will reduce the overhead for that statement.
Scott
Maple always starts with the same seed.
From what I have seen, if you want to get different number or other random thing from Maple commands in MapleTA you need to use the
RandomTools:-SetState
command with a random seed from MapleTA. For example, you could use something like the following:
$a=range(1000,10000000,1);
$b=maple("RandomTools:-SetState( state=($a));RandomTools:-Generate(polynom(nonnegint(range=10),x,degree=5);");
This generates random polynomials of degree 5 that are determined by the seed, $a.