How does one code so as to insert random numbers into a table?
In this activity (Testing version of Feed the Shark • Activity Builder by Desmos), I would like to do the above in screen 2. I am able to generate appropriate values in a Note component, which requires students to type the results into the table. I would like to eliminate that step.
Here is what I have tried so far…
#Instantiate the randomGenerator. Assign it to a variable.
r = randomGenerator()
#Generate random values for initial angle, initial velocity, and initial height
#and populate table
a=r.int(15,75)
v=r.int(10,75)
h=r.int(0,50)
initialCellContent(2,1): “${a}”
initialCellContent(2,2): “{v}”
initialCellContent(2,3): “{h}”
The above code gives no errors, but also no table entries.
Can this be done?