I'd like to use the list initialized with random numbers in Unity c#, but the current method will result in a long code as follows.
For me, who has become Python, it's very troublesome to write like this every time.
Is there any way to make a list of random numbers cleaner, preferably one line?
List<int>outputs=new List<int>();
foreach(intz_inEnumerable.Range(0,output))
{
outputs.Add(Random.Range(0,wall_len));
}
Enumerable.Range(0,output).Select(_=>Random.Range(0,wall_len))).ToList();
572 rails db:create error: Could not find mysql2-0.5.4 in any of the sources
610 GDB gets version error when attempting to debug with the Presense SDK (IDE)
574 Who developed the "avformat-59.dll" that comes with FFmpeg?
911 When building Fast API+Uvicorn environment with PyInstaller, console=False results in an error
© 2024 OneMinuteCode. All rights reserved.