Skip to content

Commit f263361

Browse files
author
hartsantler
committed
added random.random to mini standard library
1 parent 678361c commit f263361

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

pythonscript/python_to_pythonjs.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,9 @@ def getvalue(self):
5757
MINI_STDLIB = {
5858
'time': {
5959
'time': 'function time() { return new Date().getTime(); }'
60+
},
61+
'random': {
62+
'random': 'var random = Math.random'
6063
}
6164
}
6265
class PythonToPythonJS(NodeVisitor):

0 commit comments

Comments
 (0)