Home Upgrade Search Memberlist Extras Hacker Tools Award Goals Help Wiki Contact

.NET 

Secure Random Class - Updated

This ways are very elaborate, most times you can use a simple function like this.

Note: the static declaration makes this object, maintain its last place, so it is like having it outside the function.

Code
Function EZ_Random(ByVal Min As Integer, ByVal Max As Integer)
        Static RndObj As New Random
        Return RndObj.Next(Min, Max)
    End Function


Possibly Related Threads...
Thread / Author Replies Views Last Post
[C] by lockheadApr 22, 2021 07:10 AM 0 147 Apr 22, 2021 07:10 AM
Last Post: lockhead
[C#] by gigajewFeb 12, 2019 05:55 PM 0 412 Feb 12, 2019 05:55 PM
Last Post: gigajew
[C#] by MarwixAug 4, 2017 02:56 AM 8 424 Aug 4, 2017 02:56 AM
Last Post: Marwix