Why does random.next return a single number?

public static void Main(string[] args)
        {
            int[] ints = new int[50];
            for (int i = 0; i < ints.Length; iPP)
            {
                Random random = new Random();

                ints[i] = random.Next();
            }

            new Rectangle().print(ints);
        }

446306190
446306190
446306190

Mar.28,2021

Random random = new Random();
for (int i = 0; i < ints.Length; iPP)
{
    ints[i] = random.Next();
}

use the same random all the time


https://blog.csdn.net/w790634. can take a look at

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b3ea1d-347f5.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b3ea1d-347f5.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?