lundi 22 février 2021

Repeat Text X Amount with New Numbers Each Time

I am looking for way to write a script that allows you to print a certain text 100 times and have randomize a certain value in it within a range.For example:

The text could be:

“r”: randomNumber,

“g”: randomNumber,

“b”: randomNumber

randomNumber could be a range of decimals between 0 and 1, by .01

I’m trying to find a more efficient way to duplicate a text a lot of times while having a different number in a range within the repeating text every time. So I do not need to copy a text several hundred times and rewrite the number manually. That’s very inefficient!

Any help is greatly appreciated! Thank you!




Aucun commentaire:

Enregistrer un commentaire