---
title: "Discussion on \"A New Way to Randomize in .NET 8\" | Hashnode"
description: "Discussion on \"A New Way to Randomize in .NET 8\". We've all used random numbers in C# for various reasons. It has never been difficult to get a random number and use it, we've all probably written something like this:\npublic int GetRandomNumber(int max)\n{\n    var random = new Random();\n    return ra..."
url: "https://hashnode.com/posts/a-new-way-to-randomize-in-net-8/6595a8004b1f5affc97d080c"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [A New Way to Randomize in .NET 8](https://ryanphillips.hashnode.dev/a-new-way-to-randomize-in-net-8?utm_source=hashnode&utm_medium=feed)

We've all used random numbers in C# for various reasons. It has never been difficult to get a random number and use it, we've all probably written something like this: public int GetRandomNumber(int max) { var random = new Random(); return ra...

Jan 3, 2024 · 2 min read · ryanphillips.hashnode.dev  
Read the article

-   [#dotnet](https://hashnode.com/tag/dotnet)
-   [#csharp](https://hashnode.com/tag/csharp)
-   [#random](https://hashnode.com/tag/random)
-   [#net-8](https://hashnode.com/tag/net-8)

## Written by

[Ryan Phillips](https://hashnode.com/@ryanphillips)

@ryanphillips

  
[View profile](https://hashnode.com/@ryanphillips)

I've been developing software for over a decade and I want to help other devs overcome some of the challenges that come with the job.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
