# ComputerInfo.TotalPhysicalMemory() displays 17 GB of RAM instead of 16

I’ve been working on some Winforms C# application and thought about adding a functionality that shows you the RAM usage of the process / the total physical RAM in your computer. I looked for some built-in Microsoft methods that help me with this, and I found out that the total RAM memory in my PC… Read More ComputerInfo.TotalPhysicalMemory() displays 17 GB of RAM instead of 16

# RAM, Memory cell and address

I am trying to get a sound understanding about how RAM works in most computers. I feel this is a silly question and I might get down votes but im asking anyway. I am watching videos and reading online but haven’t got a straight clear answer. I just have two questions: Is Memory cell the… Read More RAM, Memory cell and address

# How to generate a random number with the amount of digits, the user enters?

I’m making a small math program for practice purposes. The user is supposed to enter, how many digits the two summands should have. I did this as shown below: import random digits = int(input(“How many digits should the numbers have? “)) if digits == 1: while True: num1 = random.randint(0,9) num2 = random.randint(0,9) solution =… Read More How to generate a random number with the amount of digits, the user enters?