Loading web tool...

Back

Random Number

How to get a random number.

Close
Rotate layout Save code Display size: 0x0
Copy code

import

random


print

(

random.

randint

(

0

,

10

))


print

(

random.

uniform

(

0

,

10

))

A basic example/template demonstrating how to get a random integer or float number.

Element version: 1.0 (Last updated: January 26, 2024)