How to create RANDOM Numbers in Python?
DATA MUNGING DATA CLEANING PYTHON MACHINE LEARNING RECIPES PANDAS CHEATSHEET     ALL TAGS

# How to create RANDOM Numbers in Python?

This recipe helps you create RANDOM Numbers in Python

0
This python source code does the following: 1. Imports the necessary libraries 2. Generates the numpy numbers with unifrom distribution 3. Generates the numpy numbers with normal distribution
In [1]:
```## How to create RANDOM Numbers in Python
def Kickstarter_Example_60():
print()
print(format('How to create RANDOM Numbers in Python','*^82'))

import warnings
warnings.filterwarnings("ignore")

import numpy as np

# Generate A Random Number From The Normal Distribution
print(); print(np.random.normal())

# Generate Four Random Numbers From The Normal Distribution
print(); print(np.random.normal(size=14))

# Generate Four Random Numbers From The Uniform Distribution
print(); print(np.random.uniform(size=14))

# Generate Four Random Integers Between 1 and 100
print(); print(np.random.randint(low=1, high=100, size=14))

Kickstarter_Example_60()
```
```**********************How to create RANDOM Numbers in Python**********************

0.5718079692879499

[-0.61879245  0.65817166 -0.41865909 -0.94647033 -0.01689476 -0.47632777
1.2639386  -0.11208773  0.14831378  0.84344252  1.22783882  1.0624572
-0.71145307 -0.24354584]

[0.66456188 0.86262981 0.8608813  0.40233827 0.07954986 0.2030632
0.37323321 0.28267457 0.67675625 0.10700224 0.89255879 0.38690977
0.66770101 0.16143554]

[ 4 99 10 66 28 81 22  5 36 25 28 92 39 93]
```

#### Relevant Projects

##### Loan Eligibility Prediction using Gradient Boosting Classifier
This data science in python project predicts if a loan should be given to an applicant or not. We predict if the customer is eligible for loan based on several factors like credit score and past history.

##### Perform Time series modelling using Facebook Prophet
In this project, we are going to talk about Time Series Forecasting to predict the electricity requirement for a particular house using Prophet.

##### Data Science Project on Wine Quality Prediction in R
In this R data science project, we will explore wine dataset to assess red wine quality. The objective of this data science project is to explore which chemical properties will influence the quality of red wines.

##### PySpark Tutorial - Learn to use Apache Spark with Python
PySpark Project-Get a handle on using Python with Spark through this hands-on data processing spark python tutorial.

##### Time Series Forecasting with LSTM Neural Network Python
Deep Learning Project- Learn to apply deep learning paradigm to forecast univariate time series data.

##### Ecommerce product reviews - Pairwise ranking and sentiment analysis
This project analyzes a dataset containing ecommerce product reviews. The goal is to use machine learning models to perform sentiment analysis on product reviews and rank them based on relevance. Reviews play a key role in product recommendation systems.

##### Predict Employee Computer Access Needs in Python
Data Science Project in Python- Given his or her job role, predict employee access needs using amazon employee database.

##### Sequence Classification with LSTM RNN in Python with Keras
In this project, we are going to work on Sequence to Sequence Prediction using IMDB Movie Review Datasetâ€‹ using Keras in Python.

##### Walmart Sales Forecasting Data Science Project
Data Science Project in R-Predict the sales for each department using historical markdown data from the Walmart dataset containing data of 45 Walmart stores.

##### Deep Learning with Keras in R to Predict Customer Churn
In this deep learning project, we will predict customer churn using Artificial Neural Networks and learn how to model an ANN in R with the keras deep learning package.