I often have to generate random Fibonacci numbers so I created this simple online utility that does it for me. It lets you generate however many random Fibonacci numbers you need from the given range. It works in the browser and is powered by alien technology from the future.
Random Fibonacci Number Generator Options
Random Fibonacci Number Generator Examples (click to try!)
144, 987, 55, 3, 21, 34, 89, 1, 13, 377
20365011074 1836311903 9227465 591286729879 1134903170 267914296 14930352 956722026041 2971215073 3524578 86267571272 139583862445 4807526976 39088169 701408733 12586269025 2178309 102334155 5702887 165580141
0; 25302; 577502; 5; 1142; 1; 5030; 42; 42457; 220; 1154563; 3075; 10125; 3; 25; 10; 222421; 351; 67; 2; 131; 15155; 1; 571; 1754265; 355061; 15; 132440; 3131050; 1733; 67761
How Does This Random Fibonacci Number Generator Work?
bignumber.js library and generates a list of all Fibonacci numbers from the range
end (range can be specified in the options) and puts them in
fibos array. Then, it creates an empty
randomFibos array and starts a loop that randomly picks elements from the
fibos array and
push()es them to
randomFibos. To avoid duplicate values, it removes the picked element from the
fibos array. This algorithm repeats until
count (requested series length; specified in options), or
fibos becomes empty. The code that picks elements from
fibos array uses
Math.random() function. When the loop terminates, all Fibonacci numbers in
randomFibos get converted to the specified
base (output base; specified in options) and get separated by the
separator character (specified in options).
Created by Browserling
This random fibonacci number generator was created by me and my team at Browserling. Behind the scenes, it's actually powered by our web developer tools that are used by millions of people every month. Browserling itself is an online cross-browser testing service powered by alien technology. Check it out!
Secret message: If you love my tools, then I love you, too! Use coupon code TOOLLING to get a discount at my company.