Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Second question: Depending on what you want, one of these should work.

sage: random()*2+1
2.6986168566690996
sage: randint(1,3)
1