Generate A Random Character | C Programming Example

  Рет қаралды 2,466

Portfolio Courses

Portfolio Courses

Күн бұрын

Пікірлер: 16
@grimvian
@grimvian 10 ай бұрын
Fine video explaining the random facilities in C. In English, using the old ASCII representation is relatively easy, because the letters comes in a nice row. When using Danish, as I do, I could use the extended ASCII earlier, but now I had to face the dominating UTF8, which is compatible with ASCII, but using more bytes and the Danish letters does not come in a row. Maybe an idea to introduce UTF8 in a video, because as I understand, it's used almost everywhere...
@Learn_Master
@Learn_Master 10 ай бұрын
Big fan of your teaching style and your voice also
@justcurious1940
@justcurious1940 10 ай бұрын
Can we take advantage of the fact that each time our program runs the operating system will allocate a random space for our variables in the memory, so we can use these random memory addresses to generate random numbers like this : char random(){ long long random = (long long )&random; int value = (int) (random % 26 + 'A'); return (char) value; }
@fifaham
@fifaham 9 ай бұрын
Nice video, thanks Kevin.
@PortfolioCourses
@PortfolioCourses 9 ай бұрын
You’re welcome! :-)
@vinvivofikas9973
@vinvivofikas9973 10 ай бұрын
great content. Thank you!
@otaxhu
@otaxhu 10 ай бұрын
Please can you do a video like this but with cryptographically random integers? As an example in Go we have the crypto/rand package that uses under the hood urandom (native cryptographically number generator in Linux systems)
@PortfolioCourses
@PortfolioCourses 10 ай бұрын
One day I would like to do a video on crypotgraphically secure random number generation. It's a big topic though with different approaches, it's tough to cover, though maybe I can cover one reasonable approach...
@muhammaddiymurodov9112
@muhammaddiymurodov9112 10 ай бұрын
Hello, I'm your long time subscriber and viewer and I noticed that you do not have any nested programming in c such as nested loops nested for loop/while loop, please teach also them
@ramakrishna4092
@ramakrishna4092 10 ай бұрын
Great idea Pls help us doing this sir . And one more question Why 1 is added when negative numbers shifting to right side What would be the reason . Will you pls help us doing a video on this Topic . Thanks you so much ❤.
@axn30158
@axn30158 10 ай бұрын
Do you think this method of generating random characters is good to create passwords?
@mansbjork5721
@mansbjork5721 10 ай бұрын
I think this might depend on whether this method generates random/pseudo-random numbers. To know this would inquire information about how time(), srand() and rand() operate.
@absentchronicler9063
@absentchronicler9063 10 ай бұрын
no it's not, using rand() for anything involving cryptography is not safe
@axn30158
@axn30158 10 ай бұрын
@@absentchronicler9063 how so
@NikhilxD_m40a
@NikhilxD_m40a 4 ай бұрын
is it possible to do this with an array of charecters?
@PortfolioCourses
@PortfolioCourses 4 ай бұрын
Yes: kzbin.info/www/bejne/Z4iTmaZrarl_pLM
Introduction to Pointers | C Programming Tutorial
24:42
Portfolio Courses
Рет қаралды 118 М.
struct Basics | C Programming Tutorial
24:44
Portfolio Courses
Рет қаралды 150 М.
快乐总是短暂的!😂 #搞笑夫妻 #爱美食爱生活 #搞笑达人
00:14
朱大帅and依美姐
Рет қаралды 13 МЛН
When u fight over the armrest
00:41
Adam W
Рет қаралды 32 МЛН
Real Man relocate to Remote Controlled Car 👨🏻➡️🚙🕹️ #builderc
00:24
True Random Numbers - Computerphile
12:16
Computerphile
Рет қаралды 129 М.
Become a Malloc() Pro
6:58
thedoubleeguy
Рет қаралды 3,2 М.
Create Your Own memcpy() Memory Copy Function | C Programming Example
13:21
C++ Random Number Generator AKA STOP USING Rand()
7:20
The Builder
Рет қаралды 59 М.
C++ String and C Strings
17:09
Kenny Yip Coding
Рет қаралды 1,7 М.
Concatenating strings in C
10:57
CodeVault
Рет қаралды 19 М.
How to generate random strings in C
8:16
CodeVault
Рет қаралды 4,2 М.
C++ 21:  Random Numbers
27:32
Bill Sky - The Computer Guy!
Рет қаралды 68