Ok.
I'm using the mathcell plugin/ macro to generate a random number between 1
and 10
<$macrocall $name="eval1" datatiddler="Data" cell="Random"/>
The cell contains the following javascript
=Math.floor((Math.random() * 10) + 1);
I need the result of this to be called into the following:
\define mylatex(a,b)
<$latex text="{$a$}+{$b$}" displayMode="true"></$latex>
\end
<$macrocall $name="mylatex" a={{!!Random}} b={{!!Random}}
Do I need to set a and b as macrocall eval1 in the define section or is
there a way to place the output of eval1 into the space currently occupied
by {{!!Random}} and is there a beter way to get a random number?
Cheers
Stephen
--
You received this message because you are subscribed to the Google Groups
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit
https://groups.google.com/d/msgid/tiddlywiki/88832e60-0a8f-4809-bb1c-1623a9208c52%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.