Random Numbers in Python - Advanced Python 12 - Programming Tutorial

preview_player
Показать описание
Random Numbers in Python - Advanced Python 12 - Programming Tutorial

~~~~~~~~~~~~~~ GREAT PLUGINS FOR YOUR CODE EDITOR ~~~~~~~~~~~~~~

📚 Get my FREE NumPy Handbook:

📓 Notebooks available on Patreon:

A written Tutorial can be found here:

You can find me here:

#Python

----------------------------------------------------------------------------------------------------------
* This is a sponsored link. By clicking on it you will not have any additional costs, instead you will support me and my project. Thank you so much for the support! 🙏
Рекомендации по теме
Комментарии
Автор

7:05
Pseudo random numbers.

11:32
import numpy as np

a = np.random.randint(3, 9, [3, 4])
print(a, sep=", ")

import numpy as np

arr = np.array([[1, 2, 3], [4, 5, 6], [7, 8, 9]])
print(arr)
np.random.shuffle(arr)
print(arr)

kvelez
Автор

I love random numbers so much, I would love for you to do more videos like this.
Thanks-you Python Engineer!

SamOween
Автор

It seems that random.shuffle() is deprecated since python 3.9, and we should use random.sample(mylist, k=mylist) instead.

azenkwed
Автор

How do I get number between 10000 - in secret module

abhishekkumarmishra
Автор

Change the name for this video series. This is beginner stuff. Don't
lie to people by calling it advanced. You lose your credibility from
the start when you LIE to people right from the start.

drnotebook
join shbcf.ru