Skip to content
TechDecode Tutorials

TechDecode Tutorials

Short and Simple Tech Tutorials

  • C++
    • C++ Programs
    • C++ Tutorials
    • C++ Course
    • C Programs
    • C Tutorials
  • Java
    • Java Notes
    • Programs
    • Tutorials
    • Java Courses
  • Python
    • Python Notes
    • Programs
    • Tutorials
    • Python Course
  • c#
    • C# Courses
  • Web Development
    • HTML
    • CSS
    • Javascript
      • Javascript Program
      • JavaScript Course
    • PHP
  • Data Science
    • R Programming
    • Data Science Courses
  • Application
  • Download
  • Tech
    • Cyber Security
    • Cyber Security Courses
Python Notes Python Programs 

How to generate random numbers using python code

July 4, 2022November 24, 2022 Yogendra Singh Generate random numbers using python

In this tutorial, we are going to show How to Generate random numbers using python. We have added the video tutorial and the source code of the program.

Video Tutorial: Generate random numbers using python code

Source Code

# Python program to generate random numbers

import random 
for i in range(10): 
    random_number = random.randint(0,100) 
    print("\nRandom Number : ",random_number) 

Output

Also Read: Python program to create bmi calculator

Join Now : Learn Python Programming Masterclass

  • ← How to add two numbers using python code
  • How To Run C++ in Visual Studio Code on Windows 11 →

You May Also Like

Happy New Year 2023 status using python

January 1, 2023February 19, 2024 Yogendra Singh
Swap Integers Without Temporary Variable Python Program

Swap Integers Without Temporary Variable in Python

September 22, 2021September 22, 2021 Ethix

Password Generator using python

March 8, 2022 Nihal Prasad

Python

  • Python - Introduction
  • Python - Syntax
  • Python - Comments
  • Python - Variables
  • Python - Data Types
  • Python - Numbers
  • Python - Type Casting
  • Python - Operators
  • Python - Booleans
  • Python - Strings
  • Python - Lists
  • Python - Tuples
  • Python - Sets
  • Python - Dictionary
  • Python - If Else
  • Python - While Loop
  • Python - For Loop
  • Python - Continue Statement
  • Python - Break Statement
  • Python - Functions
  • Python - Lamda Function
  • Python - Scope of Variables
  • Python - Modules
  • Python - Iterators

About Us

logo
Our mission is to deliver technical tutorials with clear, crisp, and to-the-point content on a wide range of subjects without any preconditions and impediments.

Company

  • About Us
  • Internship
  • Contact Us
  • Privacy Policy
  • Copyright Policy

Learn

  • C++
  • Java
  • Python
  • R Programming
  • Web Development

Powered By

Copyright © 2025 TechDecode Tutorials. All rights reserved.
Theme: ColorMag by ThemeGrill. Powered by WordPress.