yes…this is probably silly. I want to create a custom random number generator that accepts a range value plus some other bits, but i don’t want to rely on unity’s built in random.range function as i’d like to be able to tweak it to my liking. can anybody suggest a place i can find the source of random.range to learn how it works? or really any source of information regarding random number generators and how they work. i did look a bit already but all i could find…was actual random number generators online xD. thanks in advanced. hope this doesn’t all sound too stupid xD
.Net has some built-in functionality you could use as well, which is located in the System namespace.
However, in the end you will only get the same result as with the Unity.Random class. So not really sure what you need as of “tweak it to your liking”.
Wikipedia is a good place to start.
As far as I am aware Random is just a wrapper for System.Random. So you can use that as well.
Building your own pseudorandom generator is not that crazy an idea. Tons of games do this to provide consistent randomness after game loads or across a network.
as far as tweaking, i simply mean adding and removing from the already existing algorythem to observe the results. Im a hands on learner, watching videos and reading articles is great for some but for me i like to mess with things untill i figure out exactly what makes them tick. so seeing the source algortyhem makes understanding these things much easier for me. again, i know its stupid but its just something i was hoping i could fiddle with
UnityEngine.Random is separate from System.Random.
–Eric
You could review the System.Random source code here: Reference Source